add
This commit is contained in:
parent
485b15de74
commit
52e9037f83
|
@ -1,7 +1,14 @@
|
||||||
|
import { useEffect } from "react";
|
||||||
import BasePostLayout from "../layout/BasePost/BasePostLayout";
|
import BasePostLayout from "../layout/BasePost/BasePostLayout";
|
||||||
|
import { useMainContext } from "../layout/MainProvider";
|
||||||
import MyLearningListContainer from "./components/MyLearningListContainer";
|
import MyLearningListContainer from "./components/MyLearningListContainer";
|
||||||
|
import { PostType } from "@nice/common";
|
||||||
|
|
||||||
export default function MyLearningPage() {
|
export default function MyLearningPage() {
|
||||||
|
const { setSearchMode } = useMainContext();
|
||||||
|
useEffect(() => {
|
||||||
|
setSearchMode(PostType.COURSE);
|
||||||
|
}, [setSearchMode]);
|
||||||
return (
|
return (
|
||||||
<BasePostLayout>
|
<BasePostLayout>
|
||||||
<MyLearningListContainer></MyLearningListContainer>
|
<MyLearningListContainer></MyLearningListContainer>
|
||||||
|
|
Loading…
Reference in New Issue