Chap05 -> Using query parameters -> 7 & 8: Render search criteria and questions that returned from search
parent
2319706d66
commit
3580e9b0b4
|
@ -20,5 +20,19 @@ export const SearchPage = () => {
|
||||||
doSearch(search);
|
doSearch(search);
|
||||||
}, [search]);
|
}, [search]);
|
||||||
|
|
||||||
return <Page title="Search Results">{null}</Page>;
|
return (
|
||||||
|
<Page title="Search Results">
|
||||||
|
{search && (
|
||||||
|
<p
|
||||||
|
css={css`
|
||||||
|
font-size: 16px;
|
||||||
|
font-style: italic;
|
||||||
|
margin-top: 0px;
|
||||||
|
`}
|
||||||
|
>
|
||||||
|
<QuestionList data={questions} />
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</Page>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue