From c2d3d9013cc19381c1a8a4f6b67e19942454bab9 Mon Sep 17 00:00:00 2001 From: Martin Oppitz <6279703+deleonio@users.noreply.github.com> Date: Sat, 3 Aug 2024 05:58:22 +0200 Subject: [PATCH] fix: sample-app link --- src/pages/index.tsx | 6 +----- src/theme/Navbar/index.tsx | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 5e889ffec5..0d5f4bad71 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -7,8 +7,6 @@ import Layout from '@theme/Layout'; import type { FunctionComponent } from 'react'; import React from 'react'; import { KoliBriAbbr } from '../components/KoliBriAbbr'; -import { useDocsPreferredVersion } from '@docusaurus/theme-common'; -import { determinateVersionId } from '../shares/version'; const HomepageHeader: FunctionComponent = () => (
@@ -25,8 +23,6 @@ const HomepageHeader: FunctionComponent = () => (
); const HomepageButtons: FunctionComponent = () => { - const docVersion = useDocsPreferredVersion(); - const version = determinateVersionId(docVersion); return (
@@ -50,7 +46,7 @@ const HomepageButtons: FunctionComponent = () => { > = (props) => { // setDark(false); // }, // }; - const docVersion = useDocsPreferredVersion(); - const version = determinateVersionId(docVersion); return (
@@ -88,7 +86,7 @@ export const NavbarWrapper: FunctionComponent = (props) => {
*/}