mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
fix: warning
This commit is contained in:
parent
6e40a79b6f
commit
984518efaf
2 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,6 @@ declare module '@theme/Showcase/ShowcaseTagSelect' {
|
||||||
}
|
}
|
||||||
declare module '@theme/Showcase/ShowcaseFilterToggle' {
|
declare module '@theme/Showcase/ShowcaseFilterToggle' {
|
||||||
export type Operator = 'OR' | 'AND';
|
export type Operator = 'OR' | 'AND';
|
||||||
export const OperatorQueryKey = 'operator';
|
|
||||||
|
|
||||||
export default function ShowcaseFilterToggle(): JSX.Element;
|
export default function ShowcaseFilterToggle(): JSX.Element;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,11 @@ import {useHistory, useLocation} from '@docusaurus/router';
|
||||||
|
|
||||||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
|
||||||
import type {Operator} from '@theme/Showcase/ShowcaseFilterToggle';
|
import type {Operator} from '@theme/Showcase/ShowcaseFilterToggle';
|
||||||
import {OperatorQueryKey} from '@theme/Showcase/ShowcaseFilterToggle';
|
|
||||||
|
|
||||||
import styles from './styles.module.css';
|
import styles from './styles.module.css';
|
||||||
|
|
||||||
|
const OperatorQueryKey = 'operator';
|
||||||
|
|
||||||
type UserState = {
|
type UserState = {
|
||||||
scrollTopPosition: number;
|
scrollTopPosition: number;
|
||||||
focusedElementId: string | undefined;
|
focusedElementId: string | undefined;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue