From 72fd9ad664b89aa89132cb3dc2c59c978e7eb4b0 Mon Sep 17 00:00:00 2001 From: tom Date: Tue, 14 Nov 2023 17:19:11 -0300 Subject: [PATCH] external icon in menu Fixes #1336 --- ui/snippets/navigation/NavLink.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ui/snippets/navigation/NavLink.tsx b/ui/snippets/navigation/NavLink.tsx index 3bf8ef24c3..9a789a9fae 100644 --- a/ui/snippets/navigation/NavLink.tsx +++ b/ui/snippets/navigation/NavLink.tsx @@ -1,4 +1,4 @@ -import { Link, Text, HStack, Tooltip, Box, useBreakpointValue, chakra, shouldForwardProp } from '@chakra-ui/react'; +import { Link, Text, HStack, Tooltip, Box, useBreakpointValue, chakra, shouldForwardProp, Icon } from '@chakra-ui/react'; import NextLink from 'next/link'; import React from 'react'; @@ -6,6 +6,7 @@ import type { NavItem } from 'types/client/navigation-items'; import { route } from 'nextjs-routes'; +import arrowIcon from 'icons/arrows/north-east.svg'; import useIsMobile from 'lib/hooks/useIsMobile'; import { isInternalItem } from 'lib/hooks/useNavItems'; @@ -43,6 +44,11 @@ const NavLink = ({ item, isCollapsed, px, className, onClick }: Props) => { aria-label={ `${ item.text } link` } whiteSpace="nowrap" onClick={ onClick } + _hover={{ + '& *': { + color: 'link_hovered', + }, + }} > { - { item.text } + { item.text } + { !isInternalLink && }