From 0f05b5097a6ac14380412071f3d3552ed57bea37 Mon Sep 17 00:00:00 2001 From: Vyrtsev Mikhail Date: Mon, 29 Jul 2019 00:55:54 +0300 Subject: [PATCH] rename action --- frontend/app/components/root/root.tsx | 8 ++++---- frontend/app/store/user/actions.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/app/components/root/root.tsx b/frontend/app/components/root/root.tsx index 7744be91..2b226aad 100644 --- a/frontend/app/components/root/root.tsx +++ b/frontend/app/components/root/root.tsx @@ -22,7 +22,7 @@ import { blockUser, unblockUser, fetchBlockedUsers, - setSettingsVisibleState, + setSettingsVisibility, hideUser, unhideUser, } from '@app/store/user/actions'; @@ -61,7 +61,7 @@ const boundActions = bindActions({ fetchComments, fetchUser, fetchBlockedUsers, - setSettingsVisible: setSettingsVisibleState, + setSettingsVisibility, logIn, logOut: logout, setTheme, @@ -162,7 +162,7 @@ export class Root extends Component { if (this.props.user && this.props.user.admin) { await this.props.fetchBlockedUsers(); } - this.props.setSettingsVisible(true); + this.props.setSettingsVisibility(true); } async onBlockedUsersHide() { @@ -170,7 +170,7 @@ export class Root extends Component { if (this.state.wasSomeoneUnblocked) { this.props.fetchComments(this.props.sort); } - this.props.setSettingsVisible(false); + this.props.setSettingsVisibility(false); this.setState({ wasSomeoneUnblocked: false, }); diff --git a/frontend/app/store/user/actions.ts b/frontend/app/store/user/actions.ts index c72ece19..41388d9b 100644 --- a/frontend/app/store/user/actions.ts +++ b/frontend/app/store/user/actions.ts @@ -148,7 +148,7 @@ export const setVerifiedStatus = (id: User['id'], status: boolean): StoreAction< }); }; -export const setSettingsVisibleState = (state: boolean): StoreAction => dispatch => { +export const setSettingsVisibility = (state: boolean): StoreAction => dispatch => { dispatch({ type: SETTINGS_VISIBLE_SET, state,