|
@@ -136,7 +136,13 @@ const GrowiNavbarLogo: FC<NavbarLogoProps> = memo((props: NavbarLogoProps) => {
|
|
|
|
|
|
|
|
GrowiNavbarLogo.displayName = 'GrowiNavbarLogo';
|
|
GrowiNavbarLogo.displayName = 'GrowiNavbarLogo';
|
|
|
|
|
|
|
|
-export const GrowiNavbar = (): JSX.Element => {
|
|
|
|
|
|
|
+type Props = {
|
|
|
|
|
+ isGlobalSearchHidden?: boolean
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export const GrowiNavbar = (props: Props): JSX.Element => {
|
|
|
|
|
+
|
|
|
|
|
+ const { isGlobalSearchHidden } = props;
|
|
|
|
|
|
|
|
const GlobalSearch = dynamic<GlobalSearchProps>(() => import('./GlobalSearch').then(mod => mod.GlobalSearch), { ssr: false });
|
|
const GlobalSearch = dynamic<GlobalSearchProps>(() => import('./GlobalSearch').then(mod => mod.GlobalSearch), { ssr: false });
|
|
|
|
|
|
|
@@ -169,7 +175,7 @@ export const GrowiNavbar = (): JSX.Element => {
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
|
|
|
<div className="grw-global-search-container position-absolute">
|
|
<div className="grw-global-search-container position-absolute">
|
|
|
- { isSearchServiceConfigured && !isDeviceSmallerThanMd && !isSearchPage && (
|
|
|
|
|
|
|
+ { !isGlobalSearchHidden && isSearchServiceConfigured && !isDeviceSmallerThanMd && !isSearchPage && (
|
|
|
<GlobalSearch />
|
|
<GlobalSearch />
|
|
|
) }
|
|
) }
|
|
|
</div>
|
|
</div>
|