converted data.status.hidePrivacyAlert to hidePrivacyAlert

This commit is contained in:
Martina 2021-08-28 18:44:49 -07:00
parent 6c1c66b09e
commit df2a24eb7c
3 changed files with 4 additions and 7 deletions

View File

@ -132,14 +132,11 @@ export class Alert extends React.Component {
};
_handleDismissPrivacyAlert = (e) => {
Actions.updateStatus({ status: { hidePrivacyAlert: true } });
Actions.updateViewer({ hidePrivacyAlert: true });
this.props.onAction({
type: "UDPATE_VIEWER",
viewer: {
data: {
...this.props.viewer.data,
status: { ...this.props.viewer.data.status, hidePrivacyAlert: true },
},
hidePrivacyAlert: true,
},
});
};

View File

@ -278,7 +278,7 @@ export default class ApplicationLayout extends React.Component {
this.props.page?.id === "NAV_SIGN_IN"
? true
: this.props.viewer
? this.props.viewer.data.status?.hidePrivacyAlert
? this.props.viewer.hidePrivacyAlert
: false
}
fileLoading={this.props.fileLoading}

View File

@ -269,7 +269,7 @@ Users
'data.name', -> 'name' MIGRATED
'data.body', -> 'body' MIGRATED
'data.photo', -> 'photo' MIGRATED
'data.status', -> 'hidePrivacyAlert'
'data.status', -> 'hidePrivacyAlert' MIGRATED
'data.tokens', -> 'apiToken'
'data.settings.settings_deals_auto_approve', -> 'settingsDealsAutoApprove'
'data.settings.allow_automatic_data_storage', -> 'allowAutomaticDataStorage'