File tree Expand file tree Collapse file tree
apps/site/components/Downloads/DownloadReleasesTable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use client' ;
22
3+ import { ArrowUpRightIcon } from '@heroicons/react/24/solid' ;
34import { useTranslations } from 'next-intl' ;
45import type { FC } from 'react' ;
56import { use } from 'react' ;
67
7- import LinkWithArrow from '#site/components/LinkWithArrow' ;
88import { ReleaseModalContext } from '#site/providers/releaseModalProvider' ;
99import type { NodeRelease } from '#site/types' ;
1010
@@ -18,21 +18,15 @@ const DetailsButton: FC<DetailsButtonProps> = ({ versionData }) => {
1818 const { openModal } = use ( ReleaseModalContext ) ;
1919
2020 return (
21- < LinkWithArrow
22- className = "cursor-pointer"
23- role = "button"
24- tabIndex = { 0 }
25- aria-label = { t ( 'details' ) }
26- onKeyDown = { e => {
27- if ( e . key === 'Enter' || e . key === ' ' ) {
28- e . preventDefault ( ) ;
29- openModal ( versionData ) ;
30- }
31- } }
21+ < button
22+ type = "button"
23+ className = "cursor-pointer text-green-600 hover:text-green-900 dark:text-green-400 dark:hover:text-green-200"
3224 onClick = { ( ) => openModal ( versionData ) }
25+ aria-label = { t ( 'details' ) }
3326 >
3427 { t ( 'details' ) }
35- </ LinkWithArrow >
28+ < ArrowUpRightIcon className = "ml-1 inline w-3 fill-neutral-600 dark:fill-white" />
29+ </ button >
3630 ) ;
3731} ;
3832
You can’t perform that action at this time.
0 commit comments