mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-09 20:28:29 +03:00
converted data.status.hidePrivacyAlert to hidePrivacyAlert
This commit is contained in:
parent
6c1c66b09e
commit
df2a24eb7c
@ -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,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
@ -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}
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user