
@@ -36,7 +36,7 @@ export default function Header() {
- {user &&
}
+ {user && user.type === "employee" &&
}
>
) : (
<>
@@ -59,7 +59,7 @@ export default function Header() {
- {user &&
}
+ {user && user.type === "employee" &&
}
>
) : (
<>
diff --git a/src/pages/NoticeListPage/CustomNoticeSection.tsx b/src/pages/NoticeListPage/CustomNoticeSection.tsx
index ad01c54..8782545 100644
--- a/src/pages/NoticeListPage/CustomNoticeSection.tsx
+++ b/src/pages/NoticeListPage/CustomNoticeSection.tsx
@@ -28,8 +28,8 @@ function CustomNoticeSection({ customNotices }: CustomNoticeSectionProps) {
});
return (
-
-
+
+
맞춤 공고
diff --git a/src/pages/NoticeListPage/NoticeListPage.tsx b/src/pages/NoticeListPage/NoticeListPage.tsx
index 3823c5c..420cb8e 100644
--- a/src/pages/NoticeListPage/NoticeListPage.tsx
+++ b/src/pages/NoticeListPage/NoticeListPage.tsx
@@ -14,7 +14,7 @@ import type { SortKey } from "@/types/notice";
export default function NoticeListPage() {
const { user } = useUserStore();
- const [searchParams] = useSearchParams();
+ const [searchParams, setSearchParams] = useSearchParams();
const page = Number(searchParams.get("page") ?? 1);
const [selectedSort, setSelectedSort] = useState
("time");
@@ -46,6 +46,9 @@ export default function NoticeListPage() {
const handleSortChange = (value: string) => {
setSelectedSort(value as SortKey);
+ const newParams = new URLSearchParams(searchParams);
+ newParams.set("page", "1");
+ setSearchParams(newParams);
};
const refetchFilteredNotices = () => {
@@ -53,35 +56,36 @@ export default function NoticeListPage() {
};
return (
-
+
{user?.type && customNotices.length > 0 && (
)}
-
+
+
-
- {isLoading && (
-
- 공고 불러오는 중
-
- )}
-
- {!isLoading &&
- (posts.length > 0 ? (
-
- ) : (
+
+ {isLoading && (
- 조건에 맞는 공고가 없어요.
+ 공고 불러오는 중
- ))}
+ )}
+ {!isLoading &&
+ (posts.length > 0 ? (
+
+ ) : (
+
+ 조건에 맞는 공고가 없어요.
+
+ ))}
+
-
+
diff --git a/src/pages/NoticeSearchPage/NoticeSearchPage.tsx b/src/pages/NoticeSearchPage/NoticeSearchPage.tsx
index 870b02d..0bc93be 100644
--- a/src/pages/NoticeSearchPage/NoticeSearchPage.tsx
+++ b/src/pages/NoticeSearchPage/NoticeSearchPage.tsx
@@ -85,8 +85,8 @@ export default function NoticeSearchPage() {
};
return (
-