Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sample-app link #234

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
<header className="p-8 grid justify-center">
Expand All @@ -25,8 +23,6 @@ const HomepageHeader: FunctionComponent = () => (
</header>
);
const HomepageButtons: FunctionComponent = () => {
const docVersion = useDocsPreferredVersion();
const version = determinateVersionId(docVersion);

return (
<div className="grid sm:flex gap-4 justify-center mt-4">
Expand All @@ -50,7 +46,7 @@ const HomepageButtons: FunctionComponent = () => {
></KolLinkButton>
<KolLinkButton
className="w-72"
_href={`/${version}/sample-react/#/handout/basic`}
_href={`/sample-react/#/handout/basic`}
_label={translate({
id: 'custom.sample-app-button',
})}
Expand Down
4 changes: 1 addition & 3 deletions src/theme/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
// setDark(false);
// },
// };
const docVersion = useDocsPreferredVersion();
const version = determinateVersionId(docVersion);

return (
<div className="kolibri-navbar-wrapper sticky top-0 z-50 bg-white">
Expand Down Expand Up @@ -88,7 +86,7 @@ export const NavbarWrapper: FunctionComponent<PropsWithChildren> = (props) => {
</div> */}
<div>
<KolLinkButton
_href={`/${version}/sample-react/#/handout/basic`}
_href={`/sample-react/#/handout/basic`}
_icons={'codicon codicon-preview'}
_hideLabel
_label={translate({
Expand Down
Loading