Skip to content

Commit

Permalink
Hide search (#7466)
Browse files Browse the repository at this point in the history
  • Loading branch information
timngyn authored May 3, 2024
1 parent e1810f3 commit 590a3d5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Layout/LayoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { useRouter } from 'next/router';
import { Button, Flex, View, VisuallyHidden } from '@aws-amplify/ui-react';
import classNames from 'classnames';
import { Platform } from '@/data/platforms';
import {
ALGOLIA_API_KEY,
ALGOLIA_INDEX_NAME,
ALGOLIA_APP_ID
} from '../../constants/algolia';
// import {
// ALGOLIA_API_KEY,
// ALGOLIA_INDEX_NAME,
// ALGOLIA_APP_ID
// } from '../../constants/algolia';
import { IconMenu, IconDoubleChevron } from '@/components/Icons';
import { Menu } from '@/components/Menu';
import { LayoutContext } from '@/components/Layout';
import { PlatformNavigator } from '@/components/PlatformNavigator';
import flatDirectory from 'src/directory/flatDirectory.json';
import { DocSearch } from '@docsearch/react';
// import { DocSearch } from '@docsearch/react';
import '@docsearch/css';
import { PageLastUpdated } from '../PageLastUpdated';
import Feedback from '../Feedback';
Expand Down Expand Up @@ -72,7 +72,7 @@ export const LayoutHeader = ({
)}
>
<View className="layout-search__search__container">
<DocSearch
{/* <DocSearch
appId={process.env.ALGOLIA_APP_ID || ALGOLIA_APP_ID}
indexName={process.env.ALGOLIA_INDEX_NAME || ALGOLIA_INDEX_NAME}
apiKey={process.env.ALGOLIA_API_KEY || ALGOLIA_API_KEY}
Expand All @@ -82,7 +82,7 @@ export const LayoutHeader = ({
`gen:${isGen1 ? 'gen1' : 'gen2'}`
]
}}
/>
/> */}
</View>
</View>
</Flex>
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5170,6 +5170,11 @@ enquirer@^2.3.6:
ansi-colors "^4.1.1"
strip-ansi "^6.0.1"

entities@^4.2.0, entities@^4.4.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==

env-paths@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2"
Expand Down

0 comments on commit 590a3d5

Please sign in to comment.