Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleDelete = (environmentId) => {
console.log(environmentId)
this.props.dispatch(remove(environmentId))
this.props.dispatch(clearEnvironments())
this.props.dispatch(push('/environments'))
}
redirectToList: (appId, deviceId) =>
dispatch(push(`/applications/${appId}/devices/${deviceId}`)),
}),
hardwalletConfirmationTimeout = setTimeout(async () => {
clearTimeout(hardwalletConfirmationTimeout);
await dispatch(push('/main/hd-timeout'));
}, hardwalletConfirmationTime);
await dispatch(push('/main/hd-timer'));
homePage: () => {
dispatch(push('/'))
}
}
pushAction: (pathname) => dispatch(push(pathname)),
}),
onDisagreeClick = () => this.props.dispatch(push(this.tocDisagreementPath()));
onAgreeClick = () => this.props.dispatch(push(this.paymentPath()));
handleBack() {
if (typeof this.props.backLink === 'string') {
this.props.dispatch(push(this.props.backLink));
} else if(typeof this.props.backLink === 'function') {
this.props.backLink();
}
}
enterEditMode() {
const navigateToProfileOperation = () => async (dispatch, getState) => {
const identity = identitySelectors.selectCurrentIdentity(getState());
if (identity.type === 'individual' && !identity.isSetupFinished) {
return dispatch(push('/selfkeyIdCreate'));
}
if (identity.type === 'individual') {
return dispatch(push('/main/selfkeyId'));
}
if (identity.isSetupFinished) {
return dispatch(push('/main/corporate-dashboard'));
}
return dispatch(push(`/main/${identity.id}/setup-corporate-profile`));
};