-
Notifications
You must be signed in to change notification settings - Fork 1
[FE-Feat] 확정되지 않은 일정 섹션의 상태를 jotai로 이전 #339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
3bf3c40
21be09e
a111e5d
fadc54e
eff6d05
66d11f0
573d51b
e34b565
b51ce78
2fcae35
bd4bc54
9df6a06
459ae41
44a7b33
e0e8831
f6d8889
18be1ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,20 @@ | ||||||||||||||||||
| import { atom } from 'jotai'; | ||||||||||||||||||
| import { atomFamily } from 'jotai/utils'; | ||||||||||||||||||
|
|
||||||||||||||||||
| import type { OngoingScheduleAttendType } from '@/features/shared-schedule/model'; | ||||||||||||||||||
|
|
||||||||||||||||||
| export const ongoingSegmentValueAtom = atom<OngoingScheduleAttendType>('ALL'); | ||||||||||||||||||
|
|
||||||||||||||||||
| export interface OngoingSegmentStateAtom { | ||||||||||||||||||
| listIndex: number; | ||||||||||||||||||
| page: number; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| export const ongoingSegmentAtomFamily = atomFamily((_: OngoingScheduleAttendType) => | ||||||||||||||||||
| atom({ | ||||||||||||||||||
| listIndex: 0, | ||||||||||||||||||
| page: 1, | ||||||||||||||||||
| } as OngoingSegmentStateAtom), | ||||||||||||||||||
|
Comment on lines
+14
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. p3;
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 넵 좋습니다! |
||||||||||||||||||
| ); | ||||||||||||||||||
|
|
||||||||||||||||||
| export const ongoingListIndexAtom = atom(0); | ||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p3;
onValueChange={setSegmentValue}이렇게만 넘겨도 될 것 같습니당