mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 22:47:52 +02:00
refactor: unify export directive style (#6751)
This commit is contained in:
parent
0c807b3501
commit
0d14470d54
105 changed files with 315 additions and 510 deletions
|
@ -270,9 +270,7 @@ function DocSearch({
|
|||
);
|
||||
}
|
||||
|
||||
function SearchBar(): JSX.Element {
|
||||
export default function SearchBar(): JSX.Element {
|
||||
const {siteConfig} = useDocusaurusContext();
|
||||
return <DocSearch {...(siteConfig.themeConfig.algolia as DocSearchProps)} />;
|
||||
}
|
||||
|
||||
export default SearchBar;
|
||||
|
|
|
@ -149,7 +149,7 @@ type ResultDispatcher =
|
|||
| {type: 'update'; value: ResultDispatcherState}
|
||||
| {type: 'advance'; value?: undefined};
|
||||
|
||||
function SearchPage(): JSX.Element {
|
||||
export default function SearchPage(): JSX.Element {
|
||||
const {
|
||||
siteConfig: {themeConfig},
|
||||
i18n: {currentLocale},
|
||||
|
@ -516,5 +516,3 @@ function SearchPage(): JSX.Element {
|
|||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export default SearchPage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue