Skip to content

Commit

Permalink
disable christmas
Browse files Browse the repository at this point in the history
  • Loading branch information
namgold committed Dec 15, 2023
1 parent f3b5f69 commit bfcd84f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/state/user/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,14 @@ export const useViewMode: () => [VIEW_MODE, (mode: VIEW_MODE) => void] = () => {

export const useHolidayMode: () => [boolean, () => void] = () => {
const dispatch = useAppDispatch()
const holidayMode = useAppSelector(state => (state.user.holidayMode === undefined ? true : state.user.holidayMode))
// const holidayMode = useAppSelector(state => (state.user.holidayMode === undefined ? true : state.user.holidayMode))

const toggle = useCallback(() => {
dispatch(toggleHolidayMode())
}, [dispatch])

return [isChristmasTime() ? holidayMode : false, toggle]
// return [isChristmasTime() ? holidayMode : false, toggle]
return [false, toggle]
}

export const useCrossChainSetting = () => {
Expand Down

0 comments on commit bfcd84f

Please sign in to comment.