From 7c454286de8318a169a9c9ccf2d70372517e5b91 Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Wed, 12 Apr 2017 18:11:05 -0700 Subject: [PATCH] Update syntax to convention --- ui/src/shared/reducers/auth.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/shared/reducers/auth.js b/ui/src/shared/reducers/auth.js index b13ac402b..23c9c1b2f 100644 --- a/ui/src/shared/reducers/auth.js +++ b/ui/src/shared/reducers/auth.js @@ -1,15 +1,13 @@ -function getInitialState() { - return { - links: null, - me: null, - isMeLoading: false, - isAuthLoading: false, - } -} +const getInitialState = () => ({ + links: null, + me: null, + isMeLoading: false, + isAuthLoading: false, +}) const initialState = getInitialState() -export default function auth(state = initialState, action) { +const auth = (state = initialState, action) => { switch (action.type) { case 'AUTH_REQUESTED': { return {...state, isAuthLoading: true} @@ -34,3 +32,5 @@ export default function auth(state = initialState, action) { return state } + +export default auth