summaryrefslogtreecommitdiff
path: root/frontend/src/reducers/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/reducers/index.tsx')
-rw-r--r--frontend/src/reducers/index.tsx38
1 files changed, 0 insertions, 38 deletions
diff --git a/frontend/src/reducers/index.tsx b/frontend/src/reducers/index.tsx
deleted file mode 100644
index d4fadb68..00000000
--- a/frontend/src/reducers/index.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- This file is part of GNU Taler
- (C) 2020 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-import { Authenticate, Unauthenticate } from '../actions/auth';
-import { AUTHENTICATE, UNAUTHENTICATE } from '../constants';
-import { Store } from '../types';
-
-export default function rootReducer(
- state: Store = {
- isAuthenticated: false,
- },
- action: Authenticate | Unauthenticate
-): Store {
- switch (action.type) {
- case AUTHENTICATE:
- return {
- ...state,
- isAuthenticated: true,
- };
- case UNAUTHENTICATE:
- return { ...state, isAuthenticated: false };
- default:
- return state;
- }
-}