-
-
Save Daltonic/a0180bc1ca72eff8b3bd93106b2ce47f to your computer and use it in GitHub Desktop.
Event X
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
import { EventStruct, GlobalState, TicketStruct } from '@/utils/type.dt' | |
import { PayloadAction } from '@reduxjs/toolkit' | |
export const globalActions = { | |
setTickets: (state: GlobalState, action: PayloadAction<TicketStruct[]>) => { | |
state.tickets = action.payload | |
}, | |
setEvent: (state: GlobalState, action: PayloadAction<EventStruct | null>) => { | |
state.event = action.payload | |
}, | |
setTicketModal: (state: GlobalState, action: PayloadAction<string>) => { | |
state.ticketModal = action.payload | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment