From fe4c366f34e8c5d500a111fcedbef192b9d92ee6 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 17 Sep 2018 08:32:51 -0700 Subject: [PATCH] Format display.ts --- js/reducers/display.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/js/reducers/display.ts b/js/reducers/display.ts index 126bbd0a..b8d8cd31 100644 --- a/js/reducers/display.ts +++ b/js/reducers/display.ts @@ -1,4 +1,4 @@ -import {DisplayState, Action } from "../types"; +import { DisplayState, Action } from "../types"; import { createSelector } from "reselect"; import { @@ -53,7 +53,10 @@ const defaultDisplayState = { zIndex: 0 }; -const display = (state: DisplayState = defaultDisplayState, action: Action): DisplayState => { +const display = ( + state: DisplayState = defaultDisplayState, + action: Action +): DisplayState => { switch (action.type) { case TOGGLE_DOUBLESIZE_MODE: return { ...state, doubled: !state.doubled }; @@ -76,7 +79,7 @@ const display = (state: DisplayState = defaultDisplayState, action: Action): Dis case LOADED: return { ...state, loading: false }; case SET_SKIN_DATA: - const {data} = action; + const { data } = action; return { ...state, loading: false,