How to use the connected-react-router.push function in connected-react-router

To help you get started, we’ve selected a few connected-react-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github getheimdall / heimdall / heimdall-frontend / src / containers / SingleEnvironment.js View on Github external
handleDelete = (environmentId) => {
        console.log(environmentId)
        this.props.dispatch(remove(environmentId))
        this.props.dispatch(clearEnvironments())
        this.props.dispatch(push('/environments'))
    }
github TheThingsNetwork / lorawan-stack / pkg / webui / console / views / device-add / index.js View on Github external
redirectToList: (appId, deviceId) =>
      dispatch(push(`/applications/${appId}/devices/${deviceId}`)),
  }),
github SelfKeyFoundation / Identity-Wallet / src / common / kyc / index.js View on Github external
hardwalletConfirmationTimeout = setTimeout(async () => {
					clearTimeout(hardwalletConfirmationTimeout);
					await dispatch(push('/main/hd-timeout'));
				}, hardwalletConfirmationTime);
				await dispatch(push('/main/hd-timer'));
github storyforj / fervor / src / client / components / Form.js View on Github external
    pushAction: (pathname) => dispatch(push(pathname)),
  }),
github SelfKeyFoundation / Identity-Wallet / src / renderer / marketplace / notarization / common / toc-container.jsx View on Github external
	onDisagreeClick = () => this.props.dispatch(push(this.tocDisagreementPath()));
	onAgreeClick = () => this.props.dispatch(push(this.paymentPath()));
github openmrs / openmrs-react-components / src / components / form / EncounterFormPanel.jsx View on Github external
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() {
github SelfKeyFoundation / Identity-Wallet / src / common / identity / operations.js View on Github external
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`));
};