15088: Handles browser navigation during link account ops
[arvados-workbench2.git] / src / views / inactive-panel / inactive-panel.tsx
index 5f045f690fedba8f11e249be5fb4ec9d5a7fb99d..8d53a21ecaa060fd659d6c92ac7d9e4f83e6b692 100644 (file)
@@ -5,11 +5,10 @@
 import * as React from 'react';
 import { Dispatch } from 'redux';
 import { connect } from 'react-redux';
-import { startLinking } from '~/store/link-account-panel/link-account-panel-actions';
 import { Grid, Typography, Button } from '@material-ui/core';
 import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles';
 import { ArvadosTheme } from '~/common/custom-theme';
-import { LinkAccountType } from '~/models/link-account';
+import { navigateToLinkAccount } from '~/store/navigation/navigation-action';
 
 
 type CssRules = 'root' | 'ontop' | 'title';
@@ -43,7 +42,9 @@ export interface InactivePanelActionProps {
 }
 
 const mapDispatchToProps = (dispatch: Dispatch): InactivePanelActionProps => ({
-    startLinking: () => dispatch<any>(startLinking(LinkAccountType.ACCESS_OTHER_ACCOUNT))
+    startLinking: () => {
+        dispatch<any>(navigateToLinkAccount);
+    }
 });
 
 type InactivePanelProps =  WithStyles<CssRules> & InactivePanelActionProps;