Fix variable typo (#8084)
This commit is contained in:
@@ -17,16 +17,16 @@ const ToolsNav = ({
|
||||
}: ToolsNavProps) => {
|
||||
const { t } = useTranslation()
|
||||
const selectedSegment = useSelectedLayoutSegment()
|
||||
const actived = selectedSegment === 'tools'
|
||||
const activated = selectedSegment === 'tools'
|
||||
|
||||
return (
|
||||
<Link href="/tools" className={classNames(
|
||||
className, 'group',
|
||||
actived && 'bg-white shadow-md',
|
||||
actived ? 'text-primary-600' : 'text-gray-500 hover:bg-gray-200',
|
||||
activated && 'bg-white shadow-md',
|
||||
activated ? 'text-primary-600' : 'text-gray-500 hover:bg-gray-200',
|
||||
)}>
|
||||
{
|
||||
actived
|
||||
activated
|
||||
? <RiHammerFill className='mr-2 w-4 h-4' />
|
||||
: <RiHammerLine className='mr-2 w-4 h-4' />
|
||||
}
|
||||
|
Reference in New Issue
Block a user