feat: new modal renderer + mfa flow modal

This commit is contained in:
Paul Makles
2022-06-10 16:52:12 +01:00
parent 6be0807433
commit e81b8ed472
12 changed files with 311 additions and 26 deletions

View File

@@ -42,10 +42,13 @@ export default observer(({ children }: Props) => {
const [status, setStatus] = useState(ClientStatus.LOADING);
const [loaded, setLoaded] = useState(false);
const logout = useCallback((avoidReq?: boolean) => {
setLoaded(false);
client.logout(avoidReq);
}, []);
const logout = useCallback(
(avoidReq?: boolean) => {
setLoaded(false);
client.logout(avoidReq);
},
[client],
);
useEffect(() => {
if (navigator.onLine) {