2020-09-04 16:17:48 +02:00
|
|
|
import React, { FunctionComponent, useEffect } from "react";
|
|
|
|
import { saveLoggedIn } from "../hooks/useLoggedIn";
|
|
|
|
import { Config } from "../config";
|
|
|
|
|
|
|
|
export interface LogoutPageProps {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export const LogoutPage: FunctionComponent<LogoutPageProps> = () => {
|
|
|
|
useEffect(() => {
|
|
|
|
saveLoggedIn(false);
|
|
|
|
window.location.replace(Config.logoutURL);
|
|
|
|
}, []);
|
|
|
|
return null;
|
2020-10-13 11:37:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default LogoutPage;
|