Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit 8beb21a

Browse files
authored
Update settingState.js
1 parent 125842f commit 8beb21a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

js/reducers/settingState.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,31 @@ export default function settingState(state=initialState, action) {
3030
switch(action.type){
3131
case TYPES.OPEN_SHOW_THUMBNAIL:
3232
return Object.assign({}, state, {
33-
...state,
3433
isOpenThumbnail: true
3534
});
3635

3736
case TYPES.CLOSE_SHOW_THUMBNAIL:
3837
return Object.assign({}, state, {
39-
...state,
4038
isOpenThumbnail: false
4139
});
4240

4341
case TYPES.OPEN_AUTO_FETCH:
4442
return Object.assign({}, state, {
45-
...state,
4643
isAutoFetch: true
4744
});
4845

4946
case TYPES.CLOSE_AUTO_FETCH:
5047
return Object.assign({}, state, {
51-
...state,
5248
isAutoFetch: false
5349
});
5450

5551
case TYPES.CHANGE_DISPLAY_ORDER:
5652
return Object.assign({}, state, {
57-
...state,
5853
displayOrder: action.displayOrder
5954
});
6055

6156
case TYPES.CHANGE_COLOR:
6257
return Object.assign({}, state, {
63-
...state,
6458
themeColor: action.color,
6559
colorScheme: {
6660
...state.colorScheme,
@@ -71,7 +65,6 @@ export default function settingState(state=initialState, action) {
7165

7266
case TYPES.OPEN_NIGHT_MODE:
7367
return Object.assign({}, state, {
74-
...state,
7568
isOpenNightMode: true,
7669
colorScheme: {
7770
mainThemeColor: 'rgb(40,40,40)',
@@ -89,7 +82,6 @@ export default function settingState(state=initialState, action) {
8982

9083
case TYPES.CLOSE_NIGHT_MODE:
9184
return Object.assign({}, state, {
92-
...state,
9385
isOpenNightMode: false,
9486
colorScheme: {
9587
mainThemeColor: state.themeColor,
@@ -108,4 +100,4 @@ export default function settingState(state=initialState, action) {
108100
default:
109101
return state;
110102
}
111-
}
103+
}

0 commit comments

Comments
 (0)