one-api/web/berry/src/store/siteInfoReducer.js
Buer 48989d4a0b
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>
2024-01-07 14:20:07 +08:00

19 lines
380 B
JavaScript

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;