Format display.ts

This commit is contained in:
Jordan Eldredge 2018-09-17 08:32:51 -07:00
parent 58e77832be
commit b68ae54d78

View file

@ -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,