mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 18:09:09 +00:00
* feat: add skeleton masthead and generic loading page * add generic loader to picker page * smooth out spinner, add no-motion state
14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
import { GenericLoadingTemplate } from '@roleypoly/design-system/templates/generic-loading';
|
|
import React from 'react';
|
|
|
|
const Logout = () => {
|
|
React.useEffect(() => {
|
|
localStorage.removeItem('rp_session_key');
|
|
sessionStorage.clear();
|
|
window.location.href = '/';
|
|
}, []);
|
|
|
|
return <GenericLoadingTemplate>Logging you out...</GenericLoadingTemplate>;
|
|
};
|
|
|
|
export default Logout;
|