Files
cinny/src/client/action/settings.js
T

33 lines
725 B
JavaScript
Raw Normal View History

2021-08-08 21:56:34 +05:30
import appDispatcher from '../dispatcher';
import cons from '../state/cons';
export function toggleSystemTheme() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_SYSTEM_THEME,
});
}
export function toggleMarkdown() {
2021-08-08 21:56:34 +05:30
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_MARKDOWN,
});
}
export function togglePeopleDrawer() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_PEOPLE_DRAWER,
});
}
export function toggleMembershipEvents() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_MEMBERSHIP_EVENT,
});
}
export function toggleNickAvatarEvents() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_NICKAVATAR_EVENT,
});
}