mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
94233: added typedoc
This commit is contained in:
@@ -6,12 +6,16 @@ export interface CSSVariablesState {
|
||||
|
||||
const initialState: CSSVariablesState = Object.create({});
|
||||
|
||||
/**
|
||||
* Reducer that handles the state of CSS variables in the store
|
||||
* @param state The current state of the store
|
||||
* @param action The action to apply onto the current state of the store
|
||||
*/
|
||||
export function cssVariablesReducer(state = initialState, action: CSSVariableAction): CSSVariablesState {
|
||||
switch (action.type) {
|
||||
case CSSVariableActionTypes.ADD: {
|
||||
const variable = action.payload;
|
||||
const t = Object.assign({}, state, { [variable.name]: variable.value });
|
||||
return t;
|
||||
return Object.assign({}, state, { [variable.name]: variable.value });
|
||||
}
|
||||
default: {
|
||||
return state;
|
||||
|
Reference in New Issue
Block a user