rename action

This commit is contained in:
Vyrtsev Mikhail
2019-07-29 13:47:35 -05:00
committed by Umputun
parent cb1b42a2e0
commit 0f05b5097a
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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<Props, State> {
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<Props, State> {
if (this.state.wasSomeoneUnblocked) {
this.props.fetchComments(this.props.sort);
}
this.props.setSettingsVisible(false);
this.props.setSettingsVisibility(false);
this.setState({
wasSomeoneUnblocked: false,
});
+1 -1
View File
@@ -148,7 +148,7 @@ export const setVerifiedStatus = (id: User['id'], status: boolean): StoreAction<
});
};
export const setSettingsVisibleState = (state: boolean): StoreAction<boolean> => dispatch => {
export const setSettingsVisibility = (state: boolean): StoreAction<boolean> => dispatch => {
dispatch({
type: SETTINGS_VISIBLE_SET,
state,