mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
replaced eslint:recommended with prettier
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
import {OPEN_MENU, CLOSE_MENU} from './constants';
|
||||
import { OPEN_MENU, CLOSE_MENU } from './constants';
|
||||
|
||||
const initialState = {
|
||||
open: false
|
||||
open: false,
|
||||
};
|
||||
|
||||
export default function reducer(state = initialState, action) {
|
||||
switch (action.type) {
|
||||
case OPEN_MENU:
|
||||
return {
|
||||
...state,
|
||||
open: true
|
||||
};
|
||||
case CLOSE_MENU:
|
||||
return {
|
||||
...state,
|
||||
open: false
|
||||
};
|
||||
default :
|
||||
return state;
|
||||
case OPEN_MENU:
|
||||
return {
|
||||
...state,
|
||||
open: true,
|
||||
};
|
||||
case CLOSE_MENU:
|
||||
return {
|
||||
...state,
|
||||
open: false,
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user