File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
apps/site/components/Downloads/DownloadReleasesTable Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
+ import { ArrowUpRightIcon } from '@heroicons/react/24/solid' ;
3
4
import { useTranslations } from 'next-intl' ;
4
5
import type { FC } from 'react' ;
5
6
import { use } from 'react' ;
6
7
7
- import LinkWithArrow from '#site/components/LinkWithArrow' ;
8
8
import { ReleaseModalContext } from '#site/providers/releaseModalProvider' ;
9
9
import type { NodeRelease } from '#site/types' ;
10
10
@@ -18,21 +18,15 @@ const DetailsButton: FC<DetailsButtonProps> = ({ versionData }) => {
18
18
const { openModal } = use ( ReleaseModalContext ) ;
19
19
20
20
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"
32
24
onClick = { ( ) => openModal ( versionData ) }
25
+ aria-label = { t ( 'details' ) }
33
26
>
34
27
{ t ( 'details' ) }
35
- </ LinkWithArrow >
28
+ < ArrowUpRightIcon className = "ml-1 inline w-3 fill-neutral-600 dark:fill-white" />
29
+ </ button >
36
30
) ;
37
31
} ;
38
32
You can’t perform that action at this time.
0 commit comments