diff --git a/app/routes/index.js b/app/routes/index.js index 420de6cb0..06780afcf 100644 --- a/app/routes/index.js +++ b/app/routes/index.js @@ -9,6 +9,7 @@ const Authenticated = React.lazy(() => import("components/Authenticated")); const AuthenticatedRoutes = React.lazy(() => import("./authenticated")); const KeyedDocument = React.lazy(() => import("scenes/Document/KeyedDocument")); const Login = React.lazy(() => import("scenes/Login")); +const Logout = React.lazy(() => import("scenes/Logout")); export default function Routes() { return ( @@ -22,6 +23,7 @@ export default function Routes() { + diff --git a/app/scenes/Logout.js b/app/scenes/Logout.js new file mode 100644 index 000000000..36e94659d --- /dev/null +++ b/app/scenes/Logout.js @@ -0,0 +1,12 @@ +// @flow +import * as React from "react"; +import { Redirect } from "react-router-dom"; +import useStores from "../hooks/useStores"; + +const Logout = () => { + const { auth } = useStores(); + auth.logout(); + return ; +}; + +export default Logout; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index fa92a55ea..e7ee47ce6 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -163,6 +163,7 @@ "History": "History", "Download": "Download", "Print": "Print", + "Move {{ documentName }}": "Move {{ documentName }}", "Delete {{ documentName }}": "Delete {{ documentName }}", "Share document": "Share document", "Edit group": "Edit group",