Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix broken link in the tools section #3806

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions components/tools/ToolsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function ToolsCard({ toolData }: ToolsCardProp) {
</div>
)}
</div>
{(toolData?.links?.repoUrl || toolData?.links?.websiteUrl || toolData?.links?.docsUrl) && (
{(toolData?.links?.repoUrl || toolData?.links?.docsUrl) && (
<>
<hr className='' />
<div className='flex'>
Expand Down Expand Up @@ -201,20 +201,6 @@ export default function ToolsCard({ toolData }: ToolsCardProp) {
)}
</>
)}
{toolData.links.websiteUrl && (
<a
className='w-full cursor-pointer border-x border-gray-200 px-1 py-6 text-center hover:bg-gray-200'
href={toolData.links.websiteUrl}
target='_blank'
rel='noreferrer'
data-testid='ToolsCard-websiteUrl'
>
<div className='m-auto flex w-fit gap-2'>
<img src='/img/illustrations/icons/share.svg' alt='Share' className='w-5' />
<div className='text-sm text-gray-700'>Visit Website</div>
</div>
</a>
)}
{toolData.links.docsUrl && (
<a
className='w-full cursor-pointer border-x border-gray-200 px-1 py-6 text-center hover:bg-gray-200'
Expand Down
Loading