Alex Mikhalev
7 years ago
4 changed files with 25 additions and 1 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
import * as React from "react"; |
||||
import { Redirect } from "react-router"; |
||||
|
||||
import { AppState, ConsumeState } from "@app/state"; |
||||
|
||||
export function LogoutPage() { |
||||
function consumeState(appState: AppState) { |
||||
appState.tokenStore.clear(); |
||||
return ( |
||||
<Redirect to="/" /> |
||||
); |
||||
} |
||||
|
||||
return ( |
||||
<ConsumeState>{consumeState}</ConsumeState> |
||||
); |
||||
} |
Loading…
Reference in new issue