Skip to content

Commit

Permalink
feat(search-page): export icon data and call the searchsection component
Browse files Browse the repository at this point in the history
  • Loading branch information
RobsonOlv committed Apr 26, 2022
1 parent 76abdc2 commit bb18fda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Sidebar from 'components/sidebar'
import SearchCard from 'components/search-card'
import { MethodType } from 'utils/typings/unionTypes'
import { ActionType } from 'components/last-updates-card/functions'
import SearchSections from 'components/search-sections'

export interface SearchDataItemProps {
doc: string
Expand All @@ -23,7 +24,7 @@ export interface SearchDataItemProps {
actionType?: ActionType
}

const docsIcons = [
export const docsIcons = [
{
Icon: APIGuidesIcon,
title: 'API Guides',
Expand All @@ -46,7 +47,7 @@ const docsIcons = [
},
]

const notesIcons = [
export const notesIcons = [
{
Icon: ReleaseNotesIcon,
title: 'Release Notes',
Expand Down Expand Up @@ -93,6 +94,7 @@ const SearchPage = () => {
return (
<Flex sx={styles.body}>
<Sidebar />
<SearchSections />
<Box sx={styles.resultContainer}>
<Text sx={styles.resultText}>
Showing {searchData.length} results for "{router.query.keyword}" in
Expand Down

0 comments on commit bb18fda

Please sign in to comment.