Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

update web settings links

Prateek Sunalc37017e51f0e
diff --git a/web/apps/ensu/src/components/chat/ChatDialogs.tsx b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
index 87073d68e5..ff61046650 100644
--- a/web/apps/ensu/src/components/chat/ChatDialogs.tsx
+++ b/web/apps/ensu/src/components/chat/ChatDialogs.tsx
@@ -251,6 +251,10 @@ export const ChatDialogs = memo(
<Typography variant="small" sx={{ flex: 1 }}>
Save logs
</Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
</ListItemButton>
{isLoggedIn && (
@@ -271,47 +275,125 @@ export const ChatDialogs = memo(
>
Passkeys
</Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
</ListItemButton>
)}
- {isLoggedIn && (
+ {!isLoggedIn && (
<ListItemButton
onClick={() => {
closeSettingsModal();
- handleLogout();
+ openLoginFromChat();
}}
- sx={[
- settingsItemSx,
- { color: "critical.main" },
- ]}
+ sx={settingsItemSx}
>
+ <HugeiconsIcon
+ icon={Login01Icon}
+ {...compactIconProps}
+ />
<Typography
variant="small"
sx={{ flex: 1, fontWeight: 600 }}
>
- Sign Out
+ Sign In to Backup
</Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
</ListItemButton>
)}
- {!isLoggedIn && (
+ <ListItemButton
+ onClick={() => {
+ closeSettingsModal();
+ if (typeof window !== "undefined") {
+ window.open(
+ "https://ente.io/blog/ensu/",
+ "_blank",
+ "noopener,noreferrer",
+ );
+ }
+ }}
+ sx={settingsItemSx}
+ >
+ <Typography variant="small" sx={{ flex: 1 }}>
+ About
+ </Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
+ </ListItemButton>
+
+ <ListItemButton
+ onClick={() => {
+ closeSettingsModal();
+ if (typeof window !== "undefined") {
+ window.open(
+ "https://ente.io/privacy",
+ "_blank",
+ "noopener,noreferrer",
+ );
+ }
+ }}
+ sx={settingsItemSx}
+ >
+ <Typography variant="small" sx={{ flex: 1 }}>
+ Privacy Policy
+ </Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
+ </ListItemButton>
+
+ <ListItemButton
+ onClick={() => {
+ closeSettingsModal();
+ if (typeof window !== "undefined") {
+ window.open(
+ "https://ente.io/terms",
+ "_blank",
+ "noopener,noreferrer",
+ );
+ }
+ }}
+ sx={settingsItemSx}
+ >
+ <Typography variant="small" sx={{ flex: 1 }}>
+ Terms of Service
+ </Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
+ </ListItemButton>
+
+ {isLoggedIn && (
<ListItemButton
onClick={() => {
closeSettingsModal();
- openLoginFromChat();
+ handleLogout();
}}
- sx={settingsItemSx}
+ sx={[
+ settingsItemSx,
+ { color: "critical.main" },
+ ]}
>
- <HugeiconsIcon
- icon={Login01Icon}
- {...compactIconProps}
- />
<Typography
variant="small"
sx={{ flex: 1, fontWeight: 600 }}
>
- Sign In to Backup
+ Sign Out
</Typography>
+ <HugeiconsIcon
+ icon={ArrowRight01Icon}
+ {...smallIconProps}
+ />
</ListItemButton>
)}
</Stack>