1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 21:39:36 +02:00

Added new search bar shortcut. Fixed bug with forms still being visible after logout. Fixed bug with config fetching order

This commit is contained in:
Paweł Malak 2021-11-14 23:20:37 +01:00
parent d86ebe3e58
commit 07cd725d4a
6 changed files with 46 additions and 32 deletions

View file

@ -60,6 +60,14 @@ export const Bookmarks = (props: Props): JSX.Element => {
}
}, []);
// observe if user is authenticated -> set default view if not
useEffect(() => {
if (!isAuthenticated) {
setIsInEdit(false);
setModalIsOpen(false);
}
}, [isAuthenticated]);
const toggleModal = (): void => {
setModalIsOpen(!modalIsOpen);
};