diff options
author | Michael Hunteman <michael@huntm.net> | 2024-09-20 11:19:34 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-09-20 11:19:34 -0700 |
commit | a54a93b724a6104213b17271fc298e37adedc1c5 (patch) | |
tree | ea5d013e5a25806788b0dfd18d5e638ed141e4a7 /client/src/slices/auth | |
parent | 3aad1960e4ee9bce1155b4154c596daf09ee0ae5 (diff) |
Use redux for updating snackbar
Diffstat (limited to 'client/src/slices/auth')
-rw-r--r-- | client/src/slices/auth/adminSlice.ts | 4 | ||||
-rw-r--r-- | client/src/slices/auth/guestSlice.ts | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/client/src/slices/auth/adminSlice.ts b/client/src/slices/auth/adminSlice.ts index cc2205e..3007059 100644 --- a/client/src/slices/auth/adminSlice.ts +++ b/client/src/slices/auth/adminSlice.ts @@ -23,7 +23,5 @@ const adminSlice = createSlice({ }); export const { setAdmin } = adminSlice.actions; - -export default adminSlice.reducer; - export const selectGuests = (state: RootState) => state.admin.guests; +export default adminSlice.reducer; diff --git a/client/src/slices/auth/guestSlice.ts b/client/src/slices/auth/guestSlice.ts index fb4afaf..238781f 100644 --- a/client/src/slices/auth/guestSlice.ts +++ b/client/src/slices/auth/guestSlice.ts @@ -23,7 +23,5 @@ const guestSlice = createSlice({ }); export const { setGuest } = guestSlice.actions; - -export default guestSlice.reducer; - export const selectGuest = (state: RootState) => state.guest.guest; +export default guestSlice.reducer; |