π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remember Space mobile toast dismissal
Anand Baburajan49e535fd79a5
diff --git a/web/apps/space/src/components/SpaceMobileBestToast.tsx b/web/apps/space/src/components/SpaceMobileBestToast.tsxindex e34c97b411..4ddad716a6 100644--- a/web/apps/space/src/components/SpaceMobileBestToast.tsx+++ b/web/apps/space/src/components/SpaceMobileBestToast.tsx@@ -7,9 +7,14 @@ import { Box } from "@mui/material";import React from "react";const green = "#08C225";+const dismissedKey = "spaceMobileBestToastDismissed";export const SpaceMobileBestToast: React.FC = () => {- const [open, setOpen] = React.useState(true);+ const [open, setOpen] = React.useState(false);++ React.useEffect(() => {+ setOpen(localStorage.getItem(dismissedKey) != "1");+ }, []);if (!open) return null;@@ -66,7 +71,10 @@ export const SpaceMobileBestToast: React.FC = () => {component="button"type="button"aria-label="Close"- onClick={() => setOpen(false)}+ onClick={() => {+ setOpen(false);+ localStorage.setItem(dismissedKey, "1");+ }}sx={{alignItems: "center",appearance: "none",