diff --git a/app/users/[id]/wishlist/page.tsx b/app/users/[id]/wishlist/page.tsx
new file mode 100644
index 0000000..ebda7b8
--- /dev/null
+++ b/app/users/[id]/wishlist/page.tsx
@@ -0,0 +1,8 @@
+import { getCourses } from '@/src/entities/course/api'
+import ListCourse from '@/src/widgets/list-course'
+
+export default async function Page() {
+ const courses = await getCourses()
+
+ return
+}
diff --git a/src/views/list-course/index.tsx b/src/views/list-course/index.tsx
index 0a0027d..c7293f7 100644
--- a/src/views/list-course/index.tsx
+++ b/src/views/list-course/index.tsx
@@ -20,7 +20,7 @@ function Main({ trendingCourses, favoriteRegions, courses }: ListCourseProps) {
const router = useRouter()
if (location) {
- return
+ return
}
return (
diff --git a/src/widgets/header/index.tsx b/src/widgets/header/index.tsx
index bc2ad6d..e626f16 100644
--- a/src/widgets/header/index.tsx
+++ b/src/widgets/header/index.tsx
@@ -27,7 +27,7 @@ export default function Header({
const path = usePathname()
const router = useRouter()
- const isUpdateUser = path?.includes('/users') && !path?.includes('setting')
+ const isUpdateUser = /\/users(?!.*(setting|wishlist))/.test(path)
useEffect(() => {
return () => {
diff --git a/src/widgets/list-course/index.tsx b/src/widgets/list-course/index.tsx
index e394929..97e0e82 100644
--- a/src/widgets/list-course/index.tsx
+++ b/src/widgets/list-course/index.tsx
@@ -10,10 +10,10 @@ import Spacer from '@/src/shared/ui/Spacer'
import SelectCategories from '@/src/shared/ui/SelectCategories'
export default function ListCourse({
- location,
+ title,
courses,
}: {
- location: string
+ title: string
courses: CourseType[]
}) {
const [isListView, setIsListView] = useState(true)
@@ -26,7 +26,7 @@ export default function ListCourse({
return (