File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import Layout from '@theme/Layout';
7
7
import type { FunctionComponent } from 'react' ;
8
8
import React from 'react' ;
9
9
import { KoliBriAbbr } from '../components/KoliBriAbbr' ;
10
- import { useDocsPreferredVersion } from '@docusaurus/theme-common' ;
11
- import { determinateVersionId } from '../shares/version' ;
12
10
13
11
const HomepageHeader : FunctionComponent = ( ) => (
14
12
< header className = "p-8 grid justify-center" >
@@ -25,8 +23,6 @@ const HomepageHeader: FunctionComponent = () => (
25
23
</ header >
26
24
) ;
27
25
const HomepageButtons : FunctionComponent = ( ) => {
28
- const docVersion = useDocsPreferredVersion ( ) ;
29
- const version = determinateVersionId ( docVersion ) ;
30
26
31
27
return (
32
28
< div className = "grid sm:flex gap-4 justify-center mt-4" >
@@ -50,7 +46,7 @@ const HomepageButtons: FunctionComponent = () => {
50
46
> </ KolLinkButton >
51
47
< KolLinkButton
52
48
className = "w-72"
53
- _href = { `/${ version } / sample-react/#/handout/basic` }
49
+ _href = { `/sample-react/#/handout/basic` }
54
50
_label = { translate ( {
55
51
id : 'custom.sample-app-button' ,
56
52
} ) }
Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
27
27
// setDark(false);
28
28
// },
29
29
// };
30
- const docVersion = useDocsPreferredVersion ( ) ;
31
- const version = determinateVersionId ( docVersion ) ;
32
30
33
31
return (
34
32
< div className = "kolibri-navbar-wrapper sticky top-0 z-50 bg-white" >
@@ -88,7 +86,7 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
88
86
</div> */ }
89
87
< div >
90
88
< KolLinkButton
91
- _href = { `/${ version } / sample-react/#/handout/basic` }
89
+ _href = { `/sample-react/#/handout/basic` }
92
90
_icons = { 'codicon codicon-preview' }
93
91
_hideLabel
94
92
_label = { translate ( {
You can’t perform that action at this time.
0 commit comments