Skip to content

Commit

Permalink
Unhide search (#281)
Browse files Browse the repository at this point in the history
* Revert "Update Header.js (#249)"

This reverts commit c1bb635.

* Update Search.js
  • Loading branch information
bladey authored and dcousens committed Jun 21, 2023
1 parent 877c2fd commit fa5c15c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import { jsx } from '@emotion/core';
import { colors, gridSize } from '@arch-ui/theme';

import logosvg from '../assets/logo.svg';
import { Container, SocialIconsNav } from '../components';
import { Container, SocialIconsNav, Search } from '../components';
import { SIDEBAR_WIDTH } from '../components/Sidebar';
import { media, mediaMax, mq } from '../utils/media';

export const HEADER_HEIGHT = 60;

export const Header = forwardRef(({ toggleMenu, ...props }, ref) => (
export const Header = forwardRef(({ toggleMenu, showSearch = true, ...props }, ref) => (
<header
ref={ref}
css={{
Expand Down Expand Up @@ -78,7 +78,7 @@ export const Header = forwardRef(({ toggleMenu, ...props }, ref) => (
},
}}
>
{/* {showSearch && <Search />} */}
{showSearch && <Search />}
</div>
<div
css={{
Expand Down
3 changes: 3 additions & 0 deletions website/src/components/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export const Search = () => {
const url = suggestion.url.replace(/https*:\/\/[www.]*keystonejs\.com/, '');
navigate(url);
},
algoliaOptions: {
facetFilters: ['tags:v5'],
},
});
} else {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit fa5c15c

Please sign in to comment.