diff --git a/apps/web/app/(landing)/Headers/Navbar.tsx b/apps/web/app/(landing)/Headers/Navbar.tsx index 9f3caa93..c698947c 100644 --- a/apps/web/app/(landing)/Headers/Navbar.tsx +++ b/apps/web/app/(landing)/Headers/Navbar.tsx @@ -33,7 +33,9 @@ const SlideTabs = () => { Supermemory logo - Home + + Home + Pricing Features Docs @@ -51,20 +53,30 @@ const SlideTabs = () => { ); }; -// @ts-ignore -const Tab = ({ children, setPosition }) => { - const ref = useRef(null); +const Tab = ({ + children, + setPosition, +}: { + children: React.ReactNode; + setPosition: ({ + left, + width, + opacity, + }: { + left: number; + width: number; + opacity: number; + }) => void; +}) => { + const ref = useRef(null); return (
  • { if (!ref?.current) return; - // @ts-ignore const { width } = ref.current.getBoundingClientRect(); - setPosition({ - // @ts-ignore left: ref.current.offsetLeft, width, opacity: 1,