mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-07 11:55:17 +02:00
Search bar bug fixes
This commit is contained in:
parent
6f44200a3c
commit
e5cba605fa
4 changed files with 38 additions and 19 deletions
|
@ -7,20 +7,22 @@ export interface State {
|
|||
|
||||
const initialState: State = {
|
||||
theme: {
|
||||
name: 'blues',
|
||||
name: 'tron',
|
||||
colors: {
|
||||
background: '#2B2C56',
|
||||
primary: '#EFF1FC',
|
||||
accent: '#6677EB'
|
||||
}
|
||||
}
|
||||
}
|
||||
background: '#242B33',
|
||||
primary: '#EFFBFF',
|
||||
accent: '#6EE2FF',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const themeReducer = (state = initialState, action: Action) => {
|
||||
switch (action.type) {
|
||||
case ActionTypes.setTheme: return { theme: action.payload };
|
||||
default: return state;
|
||||
case ActionTypes.setTheme:
|
||||
return { theme: action.payload };
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default themeReducer;
|
||||
export default themeReducer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue