From cb50eeac9f824c427faf5ea0103b8de38c82f1ce Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 26 May 2021 23:00:07 -0400 Subject: [PATCH] logout --- vocodes/src/App.tsx | 1 + vocodes/src/migration/MigrationTopNav.tsx | 2 + .../src/migration/MigrationTopNav_Session.tsx | 42 +++++++++++++++++-- 3 files changed, 42 insertions(+), 3 deletions(-) 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