diff --git a/src/components/features/noticeList/noticeListSection.tsx b/src/components/features/noticeList/noticeListSection.tsx index 6d18a56..8fd5a62 100644 --- a/src/components/features/noticeList/noticeListSection.tsx +++ b/src/components/features/noticeList/noticeListSection.tsx @@ -28,8 +28,8 @@ const NoticeListSection = ({ q, initialFilters }: NoticeListSectionProps) => { fetchNotices({ sort })} - onFilterSubmit={filter => fetchNotices(filter)} + onSortChange={sort => fetchNotices({ sort, offset: 0 })} + onFilterSubmit={filter => fetchNotices({ ...filter, offset: 0 })} /> { isInitialized={isInitialized} reset={reset} /> - {!isLoading && ( - fetchNotices({ offset: next })} - className='mt-8 tablet:mt-10' - /> - )} +
+ {!isLoading && ( + fetchNotices({ offset: next })} + /> + )} +
); };