Open PWA on last opened page

This commit is contained in:
Zef Hemel
2023-08-16 11:40:31 +02:00
parent bd77f2932c
commit f22b9c4a1f
7 changed files with 25 additions and 11 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ export type ActionButton = {
export function TopBar({
pageName,
unsavedChanges,
synced,
syncFailures,
isLoading,
notifications,
onRename,
@@ -33,7 +33,7 @@ export function TopBar({
}: {
pageName?: string;
unsavedChanges: boolean;
synced: boolean;
syncFailures: number;
isLoading: boolean;
notifications: Notification[];
darkMode: boolean;
@@ -78,7 +78,7 @@ export function TopBar({
}, []);
return (
<div id="sb-top" className={synced ? undefined : "sb-sync-error"}>
<div id="sb-top" className={syncFailures > 1 ? "sb-sync-error" : undefined}>
{lhs}
<div className="main">
<div className="inner">