File size: 400 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import { createSlice } from '@reduxjs/toolkit';
const initialState = { showLoginAlert: false };
const loginAlertSlice = createSlice({
name: 'loginAlert',
initialState,
reducers: {
setLoginAlert: (state, action) => {
state.showLoginAlert = action.payload;
},
},
});
export const { setLoginAlert } = loginAlertSlice.actions;
export default loginAlertSlice.reducer;
|