From bd534b27d937f20c0b66d6f19928f700f75bcce5 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Tue, 2 Jun 2020 22:40:47 +0200 Subject: [PATCH] refactor: delete useless store/auth folder --- src/store/auth/index.ts | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/store/auth/index.ts diff --git a/src/store/auth/index.ts b/src/store/auth/index.ts deleted file mode 100644 index fac40f3..0000000 --- a/src/store/auth/index.ts +++ /dev/null @@ -1,36 +0,0 @@ -// Redux -import {createSlice} from '@reduxjs/toolkit'; -// Typing -import User from '../../models/User'; - -interface SliceState { - isAuthenticated: boolean; - loading: boolean; - user: User | null; - error: string | null; -} - -const initialState: SliceState = { - isAuthenticated: false, - loading: true, - user: null, - error: null, -}; - -const authSlice = createSlice({ - name: 'auth', - initialState, - reducers: {}, -}); - -// export actions -export const {} = authSlice.actions; - -// export selectors -// export const selectAuthState = (state: RootState) => { -// const {isAuthenticated, loading} = state.auth; -// return {isAuthenticated, loading}; -// }; - -// export reducer -export default authSlice.reducer;