You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readarr/frontend/src/Store/Actions/appActions.js

28 lines
696 B

import { createAction } from 'redux-actions';
import * as types from './actionTypes';
export const saveDimensions = createAction(types.SAVE_DIMENSIONS);
export const setVersion = createAction(types.SET_VERSION);
export const setIsSidebarVisible = createAction(types.SET_IS_SIDEBAR_VISIBLE);
export const setAppValue = createAction(types.SET_APP_VALUE, (payload) => {
return {
section: 'app',
...payload
};
});
export const showMessage = createAction(types.SHOW_MESSAGE, (payload) => {
return {
section: 'messages',
...payload
};
});
export const hideMessage = createAction(types.HIDE_MESSAGE, (payload) => {
return {
section: 'messages',
...payload
};
});