diff --git a/ui/src/components/Nav/Desktop/index.tsx b/ui/src/components/Nav/Desktop/index.tsx index b1e42ac21..8012b15c0 100644 --- a/ui/src/components/Nav/Desktop/index.tsx +++ b/ui/src/components/Nav/Desktop/index.tsx @@ -1,10 +1,33 @@ import React from 'react'; import * as OutlineIcons from '@heroicons/react/24/outline'; import * as HeadlessUI from '@headlessui/react'; - import * as Components from '@components'; import * as Interfaces from '@interfaces'; +type FlickerLessLinkProps = { + subItem: Interfaces.NavMenuItem; + active: boolean; +}; + +const FlickerLessLink = React.forwardRef((props, ref) => { + const { label, value, onClick } = props.subItem; + + return ( + + {label} + + ); +}); + +FlickerLessLink.displayName = 'FlickerLessLink'; + type Props = { items: Interfaces.NavMenuItem[]; }; @@ -44,19 +67,7 @@ const Desktop: React.FC = (props): React.ReactElement => ( className="p-2 text-teal-600 transition-colors duration-500 dark:text-white-50" > - {({ active }) => ( - - {subItem.label} - - )} + {({ active }) => } ))}