@@ -11,11 +11,11 @@ import {
1111} from 'react-icons/bs'
1212import { FriendlyCaptchaContext } from '@/contexts/FriendlyCaptchaContext'
1313import { Typography } from '@/core/Typography'
14- import verifyCaptcha from '../../app/_actions/verifyCaptcha'
1514import { twMerge } from '@/lib/twMerge/twMerge'
1615import { Modal } from '@/sections/Modal'
1716import FriendlyCaptcha from '@/templates/forms/FriendlyCaptcha'
1817import type { LinkType } from '@/types'
18+ import verifyCaptcha from '../../app/_actions/verifyCaptcha'
1919import { ArrowRight } from '../../icons'
2020import { BaseLink } from './BaseLink'
2121import { getArrowElement , type ResourceLinkProps } from './ResourceLink'
@@ -122,16 +122,17 @@ const DownloadableLink = forwardRef<HTMLDivElement, DownloadableLinkProps>(
122122 setIsFriendlyChallengeDone ( true )
123123 const result = await verifyCaptcha ( solution )
124124 setNotHuman ( result !== true )
125- setIsHuman ( result == true )
125+ setIsHuman ( result === true )
126126 } ,
127- [ ] ,
127+ [ setIsHuman ] ,
128128 )
129129
130130 const commonResourceLinkWrapperClassName = `
131- group/link
131+ group
132132 text-base
133133 relative
134134 flex
135+ cursor-pointer
135136 flex-col
136137 justify-end
137138 gap-0
@@ -193,7 +194,7 @@ const DownloadableLink = forwardRef<HTMLDivElement, DownloadableLinkProps>(
193194 className = {
194195 type !== 'stickyMenu'
195196 ? commonResourceLinkWrapperClassName
196- : `group/link relative flex w-fit items-end justify-center text-slate-80 text-sm underline-offset-2`
197+ : `group relative flex w-fit cursor-pointer items-end justify-center text-slate-80 text-sm underline-offset-2`
197198 }
198199 title = { `${ assetLabel } ` }
199200 aria-haspopup = 'dialog'
@@ -222,7 +223,7 @@ const DownloadableLink = forwardRef<HTMLDivElement, DownloadableLinkProps>(
222223 </ div >
223224 { type !== 'stickyMenu' && (
224225 < div className = 'relative h-0.5' >
225- < div className = 'absolute inset-0 z-10 h-0.5 w-[0%] bg-grey-50 transition-all duration-300 group-hover/link :w-full dark:bg-white-100' />
226+ < div className = 'absolute inset-0 z-10 h-0.5 w-[0%] bg-grey-50 transition-all duration-300 group-hover:w-full dark:bg-white-100' />
226227 < div className = 'absolute inset-0 z-0 h-px w-full bg-grey-50 dark:bg-white-100' />
227228 </ div >
228229 ) }
0 commit comments