mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Format display.ts
This commit is contained in:
parent
58e77832be
commit
b68ae54d78
1 changed files with 6 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue