-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [feat] 업데이트 api 연결 * [feat] build 오류 해결
- Loading branch information
Showing
6 changed files
with
112 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
fe/src/app/event-maps/[id]/[nonMemberId]/stores/useUserDataStore.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { create } from "zustand"; | ||
|
||
interface UserData { | ||
nonMemberId: number | null; | ||
name: string; | ||
bookmarkUrls: string[]; | ||
storeUrls: string[]; | ||
} | ||
|
||
interface UserDataStore { | ||
userData: UserData; | ||
setUserData: (data: UserData) => void; | ||
} | ||
|
||
export const useUserDataStore = create<UserDataStore>((set) => ({ | ||
userData: { | ||
nonMemberId: null, | ||
name: "", | ||
bookmarkUrls: [], | ||
storeUrls: [], | ||
}, | ||
setUserData: (data) => set({ userData: data }), | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters