e.stopPropagation()}
@@ -199,7 +207,7 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
}}
>
{getDocsPath.includes(pathWtihoutFragment) && (
-
Introduction
+ Introduction
)}
{getStartedPath.includes(pathWtihoutFragment) && (
Get started
@@ -237,7 +245,9 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
@@ -269,8 +279,6 @@ export const DocsNav = ({
setOpen: (open: boolean) => void;
}) => {
const router = useRouter();
-
- /* eslint-disable no-constant-condition */
const [active, setActive] = useState({
getDocs: false,
getStarted: false,
@@ -299,7 +307,6 @@ export const DocsNav = ({
} else if (getGuidesPath.includes(pathWtihoutFragment)) {
newActive.getGuides = true;
}
-
setActive(newActive);
}, [router.asPath]);
@@ -357,9 +364,7 @@ export const DocsNav = ({
const rotateG = active.getStarted ? 'rotate(180deg)' : 'rotate(0)';
const rotateR = active.getReference ? 'rotate(180deg)' : 'rotate(0)';
const rotateSpec = active.getSpecification ? 'rotate(180deg)' : 'rotate(0)';
-
const { resolvedTheme } = useTheme();
-
const [learn_icon, setLearn_icon] = useState('');
const [reference_icon, setReference_icon] = useState('');
const [spec_icon, setSpec_icon] = useState('');
@@ -384,12 +389,12 @@ export const DocsNav = ({
return (