π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Solved the lint issues
atyabbin00b68131a886
diff --git a/infra/staff/src/components/Sidebar.tsx b/infra/staff/src/components/Sidebar.tsxindex 39177d1187..9d5250ac6d 100644--- a/infra/staff/src/components/Sidebar.tsx+++ b/infra/staff/src/components/Sidebar.tsx@@ -18,9 +18,7 @@ export const Sidebar: React.FC<SidebarProps> = ({ token, email }) => {const [error, setError] = useState<string | null>(null);const [message, setMessage] = useState<string | null>(null);interface ApiResponse {-data: {-userId: string;};}@@ -84,9 +82,8 @@ export const Sidebar: React.FC<SidebarProps> = ({ token, email }) => {const result = (await response.json()) as ApiResponse;console.log("API Response:", result);-setMessage(`${action} completed successfully`);- setError(null);+ setError(null);setTimeout(() => {setMessage(null);}, 1000);@@ -97,7 +94,7 @@ export const Sidebar: React.FC<SidebarProps> = ({ token, email }) => {? error.message: "An unexpected error occurred",);-+setTimeout(() => {setError(null);}, 1000);@@ -112,7 +109,6 @@ export const Sidebar: React.FC<SidebarProps> = ({ token, email }) => {throw new Error("Incorrect email id or token");}-await performAction(fetchedUserId, action);} catch (error) {console.error(`Error performing ${action}:`, error);@@ -121,7 +117,7 @@ export const Sidebar: React.FC<SidebarProps> = ({ token, email }) => {? error.message: "An unexpected error occurred",);-+setTimeout(() => {setError(null);}, 1000);