Skip to content

Commit

Permalink
feat: 친구 북마크 페이지에서 카테고리, 읽음 목록 상태 다르게 관리
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Aug 10, 2023
1 parent a7f5fb3 commit 73b66f1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/store/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ interface BookmarkStore {
setCategoryOptions: (options: OptionType[]) => void;
selectedCategoryId: number | null;
setSelectedCategoryId: (id: number | null) => void;
friendCategoryId: number | null;
setFriendCategoryId: (id: number | null) => void;
readOption: READ_OPTION | null;
setReadOption: (option: READ_OPTION) => void;
setReadOption: (option: READ_OPTION | null) => void;
friendReadOption: READ_OPTION | null;
setFriendReadOption: (option: READ_OPTION | null) => void;
url: string;
setUrl: (url: string) => void;
title: string;
Expand All @@ -31,10 +35,18 @@ const useBookmarkStore = create<BookmarkStore>((set) => ({
setSelectedCategoryId: (id) => {
set({ selectedCategoryId: id });
},
friendCategoryId: null,
setFriendCategoryId: (id) => {
set({ friendCategoryId: id });
},
readOption: null,
setReadOption: (option) => {
set({ readOption: option });
},
friendReadOption: null,
setFriendReadOption: (option) => {
set({ friendReadOption: option });
},
url: '',
setUrl: (url) => {
set({ url });
Expand Down

0 comments on commit 73b66f1

Please sign in to comment.