-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: winner:no인 사람이 winner-page 이동 못 하도록 수정 * Feat: 당첨여부 확인 후 래플상세보기로 돌아왔을 때 리렌더링 * Feat: 래플 결과 확인 후 리렌더링 시도 중
- Loading branch information
Showing
6 changed files
with
44 additions
and
16 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { create } from 'zustand'; | ||
|
||
interface WinnerStatusChanged { | ||
isWinnerStatusChanged: boolean; | ||
toggleWinnerStatus: () => void; // 상태를 토글하는 함수 | ||
} | ||
|
||
export const useWinnerStatusChanged = create<WinnerStatusChanged>((set) => ({ | ||
isWinnerStatusChanged: false, | ||
toggleWinnerStatus: () => | ||
set((state) => ({ isWinnerStatusChanged: !state.isWinnerStatusChanged })), | ||
})); |