π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use app back icon in Space auth screens
Anand Baburajan48726a093ad1
diff --git a/web/apps/space/src/components/SpaceAvatarCropPage.tsx b/web/apps/space/src/components/SpaceAvatarCropPage.tsxindex 2eab91d94b..a8ae784f04 100644--- a/web/apps/space/src/components/SpaceAvatarCropPage.tsx+++ b/web/apps/space/src/components/SpaceAvatarCropPage.tsx@@ -1,6 +1,5 @@-import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";-import { HugeiconsIcon } from "@hugeicons/react";import { Box } from "@mui/material";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import React from "react";import Cropper, { type Area, type Point } from "react-easy-crop";@@ -31,24 +30,6 @@ interface SpaceAvatarCropPageProps {zoom: number;}-const SetupBackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-const SpaceAvatarCropPageButton: React.FC<{children: React.ReactNode;disabled?: boolean;@@ -264,15 +245,7 @@ export const SpaceAvatarCropPage: React.FC<SpaceAvatarCropPageProps> = ({}}>- {isAppHeader ? (- <HugeiconsIcon- icon={ArrowLeft02Icon}- size={24}- strokeWidth={1.8}- />- ) : (- <SetupBackIcon />- )}+ <SpaceBackIcon /></Box><Boxcomponent="h1"diff --git a/web/apps/space/src/components/SpaceBackIcon.tsx b/web/apps/space/src/components/SpaceBackIcon.tsxnew file mode 100644index 0000000000..aeb8d23499--- /dev/null+++ b/web/apps/space/src/components/SpaceBackIcon.tsx@@ -0,0 +1,6 @@+import { ArrowLeft02Icon } from "@hugeicons/core-free-icons";+import { HugeiconsIcon } from "@hugeicons/react";++export const SpaceBackIcon = () => (+ <HugeiconsIcon icon={ArrowLeft02Icon} size={24} strokeWidth={1.8} />+);diff --git a/web/apps/space/src/screens/CreateAccountScreen.tsx b/web/apps/space/src/screens/CreateAccountScreen.tsxindex 0e2950d942..06fed8d7d0 100644--- a/web/apps/space/src/screens/CreateAccountScreen.tsx+++ b/web/apps/space/src/screens/CreateAccountScreen.tsx@@ -1,4 +1,5 @@import { Box } from "@mui/material";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import {estimatePasswordStrength,@@ -46,24 +47,6 @@ interface TextInputProps {value?: string;}-const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-const EyeIcon: React.FC = () => (<Boxcomponent="svg"@@ -405,7 +388,7 @@ export const CreateAccountScreen: React.FC<CreateAccountScreenProps> = ({},}}>- <BackIcon />+ <SpaceBackIcon /></Box><Boxcomponent="h1"diff --git a/web/apps/space/src/screens/LoginScreen.tsx b/web/apps/space/src/screens/LoginScreen.tsxindex 73da36f104..a5481d7023 100644--- a/web/apps/space/src/screens/LoginScreen.tsx+++ b/web/apps/space/src/screens/LoginScreen.tsx@@ -1,4 +1,5 @@import { Box } from "@mui/material";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import React, { useEffect, useRef, useState } from "react";import { spaceTouchTargetSize } from "styles/touchTargets";@@ -41,24 +42,6 @@ interface TextInputProps {value?: string;}-const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-const EyeIcon: React.FC = () => (<Boxcomponent="svg"@@ -377,7 +360,7 @@ export const LoginScreen: React.FC<LoginScreenProps> = ({},}}>- <BackIcon />+ <SpaceBackIcon /></Box>) : (<Box />diff --git a/web/apps/space/src/screens/PasskeyVerificationScreen.tsx b/web/apps/space/src/screens/PasskeyVerificationScreen.tsxindex 64417474ba..ef5aa708c9 100644--- a/web/apps/space/src/screens/PasskeyVerificationScreen.tsx+++ b/web/apps/space/src/screens/PasskeyVerificationScreen.tsx@@ -1,4 +1,5 @@import { Box } from "@mui/material";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import React from "react";import { spaceTouchTargetSize } from "styles/touchTargets";@@ -23,24 +24,6 @@ interface PasskeyVerificationScreenProps {status?: PasskeyVerificationStatus;}-const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-const statusText = (status: PasskeyVerificationStatus) => {switch (status) {case "checking":@@ -124,7 +107,7 @@ export const PasskeyVerificationScreen: React.FC<},}}>- <BackIcon />+ <SpaceBackIcon /></Box><Boxcomponent="h1"diff --git a/web/apps/space/src/screens/SetupProfileScreen.tsx b/web/apps/space/src/screens/SetupProfileScreen.tsxindex afc9a844f6..d6e7ef85ce 100644--- a/web/apps/space/src/screens/SetupProfileScreen.tsx+++ b/web/apps/space/src/screens/SetupProfileScreen.tsx@@ -2,6 +2,7 @@ import { Box } from "@mui/material";import { SpaceAvatarCropPage } from "components/SpaceAvatarCropPage";import { SpaceAvatarEditButton } from "components/SpaceAvatarEditButton";import { SpaceAvatarImage } from "components/SpaceAvatarImage";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import React, { useEffect, useRef, useState } from "react";import type { Area, Point } from "react-easy-crop";@@ -63,24 +64,6 @@ interface TextInputProps {value?: string;}-const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-const AvatarPlaceholder: React.FC = () => (<SpaceAvatarImage aria-hidden border="4px solid white" borderRadius="50%" />);@@ -462,7 +445,7 @@ export const SetupProfileScreen: React.FC<SetupProfileScreenProps> = ({},}}>- <BackIcon />+ <SpaceBackIcon /></Box><Boxcomponent="h1"diff --git a/web/apps/space/src/screens/VerifyEmailScreen.tsx b/web/apps/space/src/screens/VerifyEmailScreen.tsxindex 0ae94b6924..5aece66a25 100644--- a/web/apps/space/src/screens/VerifyEmailScreen.tsx+++ b/web/apps/space/src/screens/VerifyEmailScreen.tsx@@ -1,4 +1,5 @@import { Box } from "@mui/material";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import { SpaceOtpInput } from "components/SpaceOtpInput";import React, { useEffect, useRef, useState } from "react";@@ -26,24 +27,6 @@ interface VerifyEmailScreenProps {onVerify?: (code: string) => void;}-const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-export const VerifyEmailScreen: React.FC<VerifyEmailScreenProps> = ({email,errorMessage,@@ -148,7 +131,7 @@ export const VerifyEmailScreen: React.FC<VerifyEmailScreenProps> = ({},}}>- <BackIcon />+ <SpaceBackIcon /></Box><Boxcomponent="h1"diff --git a/web/apps/space/src/screens/VerifyTwoFactorScreen.tsx b/web/apps/space/src/screens/VerifyTwoFactorScreen.tsxindex 5a636dcd5e..fc5da50e40 100644--- a/web/apps/space/src/screens/VerifyTwoFactorScreen.tsx+++ b/web/apps/space/src/screens/VerifyTwoFactorScreen.tsx@@ -1,6 +1,7 @@import { Shield01Icon } from "@hugeicons/core-free-icons";import { HugeiconsIcon } from "@hugeicons/react";import { Box } from "@mui/material";+import { SpaceBackIcon } from "components/SpaceBackIcon";import { SpaceButtonSpinner } from "components/SpaceButtonSpinner";import { SpaceOtpInput } from "components/SpaceOtpInput";import React, { useEffect, useRef, useState } from "react";@@ -24,24 +25,6 @@ interface VerifyTwoFactorScreenProps {onVerify?: (code: string) => void;}-const BackIcon: React.FC = () => (- <Box- component="svg"- viewBox="0 0 24 24"- aria-hidden- sx={{ display: "block", height: 24, width: 24 }}- >- <path- d="M15 6L9 12L15 18"- fill="none"- stroke="currentColor"- strokeLinecap="round"- strokeLinejoin="round"- strokeWidth="2"- />- </Box>-);-export const VerifyTwoFactorScreen: React.FC<VerifyTwoFactorScreenProps> = ({errorMessage,initialCode = "",@@ -134,7 +117,7 @@ export const VerifyTwoFactorScreen: React.FC<VerifyTwoFactorScreenProps> = ({},}}>- <BackIcon />+ <SpaceBackIcon /></Box><Boxcomponent="h1"