add
This commit is contained in:
parent
a44ee956aa
commit
ad6413b978
|
@ -0,0 +1,20 @@
|
||||||
|
import { useEffect } from "react";
|
||||||
|
import BasePostLayout from "../layout/BasePost/BasePostLayout";
|
||||||
|
import SearchListContainer from "./components/SearchContainer";
|
||||||
|
import { useMainContext } from "../layout/MainProvider";
|
||||||
|
|
||||||
|
export default function SearchPage() {
|
||||||
|
const { setShowSearchMode, setSearchValue } = useMainContext();
|
||||||
|
useEffect(() => {
|
||||||
|
setShowSearchMode(true);
|
||||||
|
return () => {
|
||||||
|
setShowSearchMode(false);
|
||||||
|
setSearchValue("");
|
||||||
|
};
|
||||||
|
}, [setShowSearchMode]);
|
||||||
|
return (
|
||||||
|
<BasePostLayout>
|
||||||
|
<SearchListContainer></SearchListContainer>
|
||||||
|
</BasePostLayout>
|
||||||
|
);
|
||||||
|
}
|
Loading…
Reference in New Issue