mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-14 04:13:41 +08:00
feat: add new theme berry (#860)
* feat: add theme berry * docs: add development notes * fix: fix blank page * chore: update implementation * fix: fix package.json * chore: update ui copy --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
18
web/berry/src/store/siteInfoReducer.js
Normal file
18
web/berry/src/store/siteInfoReducer.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import config from 'config';
|
||||
import * as actionTypes from './actions';
|
||||
|
||||
export const initialState = config.siteInfo;
|
||||
|
||||
const siteInfoReducer = (state = initialState, action) => {
|
||||
switch (action.type) {
|
||||
case actionTypes.SET_SITE_INFO:
|
||||
return {
|
||||
...state,
|
||||
...action.payload
|
||||
};
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
export default siteInfoReducer;
|
||||
Reference in New Issue
Block a user