diff --git a/apps/web/src/app.js b/apps/web/src/app.js index d84d3225c..1b646dc70 100644 --- a/apps/web/src/app.js +++ b/apps/web/src/app.js @@ -21,6 +21,14 @@ import { useStore as useUserStore } from "./stores/user-store"; import Animated from "./components/animated"; const NavMenuItem = props => { + const [isLoading, setIsLoading] = useState(false); + const isSyncing = useUserStore(store => store.isSyncing); + useEffect(() => { + if (props.item.animatable) { + if (props.item.key === "sync") setIsLoading(isSyncing); + } + }, [isSyncing, setIsLoading, props.item]); + return (