diff --git a/vocodes/src/App.tsx b/vocodes/src/App.tsx index 180f9a7f82..c793f134a6 100644 --- a/vocodes/src/App.tsx +++ b/vocodes/src/App.tsx @@ -121,6 +121,7 @@ class App extends React.Component {
diff --git a/vocodes/src/migration/MigrationTopNav.tsx b/vocodes/src/migration/MigrationTopNav.tsx index b598de6f97..7707a734b4 100644 --- a/vocodes/src/migration/MigrationTopNav.tsx +++ b/vocodes/src/migration/MigrationTopNav.tsx @@ -6,6 +6,7 @@ import { SessionWrapper } from '../session/SessionWrapper'; interface Props { sessionWrapper: SessionWrapper, enableAlpha: boolean, + querySessionAction: () => void, } function MigrationTopNav(props: Props) { @@ -21,6 +22,7 @@ function MigrationTopNav(props: Props) { ) diff --git a/vocodes/src/migration/MigrationTopNav_Session.tsx b/vocodes/src/migration/MigrationTopNav_Session.tsx index dfca52cc4c..d1196924ad 100644 --- a/vocodes/src/migration/MigrationTopNav_Session.tsx +++ b/vocodes/src/migration/MigrationTopNav_Session.tsx @@ -1,17 +1,43 @@ import React from 'react'; import { SessionWrapper } from '../session/SessionWrapper'; -import { Link } from 'react-router-dom'; +import { Link, useHistory } from 'react-router-dom'; +import { ApiConfig } from '../v1/api/ApiConfig'; interface Props { sessionWrapper: SessionWrapper, enableAlpha: boolean, + querySessionAction: () => void, } function MigrationTopNav_Session(props: Props) { + let history = useHistory(); + if (!props.enableAlpha) { return