mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
feat: new modal renderer + mfa flow modal
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user