mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: only show sync status in placeholder on first sync
This commit is contained in:
@@ -28,8 +28,9 @@ function Placeholder(props: PlaceholderProps) {
|
||||
const { context, text } = props;
|
||||
const tip = useTip(context);
|
||||
const syncStatus = useAppStore((store) => store.syncStatus);
|
||||
const isFirstSync = useAppStore((store) => store.lastSynced === 0);
|
||||
|
||||
if (syncStatus.key === "syncing" && context === "notes") {
|
||||
if (isFirstSync && syncStatus.key === "syncing" && context === "notes") {
|
||||
return (
|
||||
<Flex
|
||||
variant="columnCenter"
|
||||
|
||||
Reference in New Issue
Block a user