blob: c70039dff1ee11a7fb16100aeccda2b5da5b49f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  | 
import { createSlice } from "@reduxjs/toolkit";
const authorizationSlice = createSlice({
    name: "authorization",
    initialState: {
        authorizing: false,
    },
    reducers: {
        startAuthorizing: (state) => {
            state.authorizing = true;
        },
        finishAuthorizing: (state) => {
            state.authorizing = false;
        },
    },
});
export const { startAuthorizing, finishAuthorizing } = authorizationSlice.actions;
export default authorizationSlice.reducer;
 
  |