From 52e9037f83e97edbac24636d43bef3a85359d2c7 Mon Sep 17 00:00:00 2001 From: ditiqi Date: Thu, 27 Feb 2025 12:21:55 +0800 Subject: [PATCH] add --- apps/web/src/app/main/my-learning/page.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/src/app/main/my-learning/page.tsx b/apps/web/src/app/main/my-learning/page.tsx index 58c38b2..cee2c94 100755 --- a/apps/web/src/app/main/my-learning/page.tsx +++ b/apps/web/src/app/main/my-learning/page.tsx @@ -1,7 +1,14 @@ +import { useEffect } from "react"; import BasePostLayout from "../layout/BasePost/BasePostLayout"; +import { useMainContext } from "../layout/MainProvider"; import MyLearningListContainer from "./components/MyLearningListContainer"; +import { PostType } from "@nice/common"; export default function MyLearningPage() { + const { setSearchMode } = useMainContext(); + useEffect(() => { + setSearchMode(PostType.COURSE); + }, [setSearchMode]); return (