Skip to content

armgit / ente

Public Imported from GitHub
0

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

feat(photos):revamp-help-settings

Aswin Asok6e7a59e7172f
diff --git a/web/apps/photos/src/components/sidebar/Help.tsx b/web/apps/photos/src/components/sidebar/Help.tsx
index 5e9e5a7dd1..69af0464e1 100644
--- a/web/apps/photos/src/components/sidebar/Help.tsx
+++ b/web/apps/photos/src/components/sidebar/Help.tsx
@@ -1,17 +1,10 @@
-import ChevronRightIcon from "@mui/icons-material/ChevronRight";
-import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
-import NorthEastIcon from "@mui/icons-material/NorthEast";
-import { Stack, Tooltip } from "@mui/material";
-import Typography from "@mui/material/Typography";
-import {
- RowButton,
- RowButtonDivider,
- RowButtonGroup,
-} from "ente-base/components/RowButton";
+import { Divider, Stack, Typography } from "@mui/material";
+import { desktopAppVersion } from "ente-base/app";
import {
TitledNestedSidebarDrawer,
type NestedSidebarDrawerVisibilityProps,
} from "ente-base/components/mui/SidebarDrawer";
+import { RowCard } from "ente-base/components/v2/RowCard";
import { useBaseContext } from "ente-base/context";
import log from "ente-base/log";
import { savedLogs } from "ente-base/log-web";
@@ -123,48 +116,66 @@ export const Help: React.FC<HelpProps> = ({
{...{ open, onClose }}
onRootClose={handleRootClose}
title={t("help")}
+ contentInset="0.5rem"
+ titleFontSize="22px"
>
- <Stack sx={{ px: 2, py: 1, gap: 3 }}>
- <RowButtonGroup>
- <RowButton
- endIcon={<InfoOutlinedIcon />}
- label={t("ente_help")}
- onClick={handleHelp}
- />
- </RowButtonGroup>
- <RowButtonGroup>
- <RowButton
- endIcon={<NorthEastIcon />}
- label={t("blog")}
- onClick={handleBlog}
- />
- <RowButtonDivider />
- <RowButton
- endIcon={<NorthEastIcon />}
- label={t("request_feature")}
- onClick={handleRequestFeature}
- />
- </RowButtonGroup>
- <RowButtonGroup>
- <RowButton
- endIcon={<ChevronRightIcon />}
- label={
- <Tooltip title="[email protected]">
- <Typography sx={{ fontWeight: "medium" }}>
- {t("support")}
- </Typography>
- </Tooltip>
- }
- onClick={handleSupport}
- />
- </RowButtonGroup>
- <RowButtonGroup>
- <RowButton
- endIcon={<ChevronRightIcon />}
- label={t("view_logs")}
- onClick={confirmViewLogs}
- />
- </RowButtonGroup>
+ <Stack sx={{ px: 2, py: 1, gap: 1 }}>
+ <RowCard
+ title="Help centre"
+ subtitle="ente.com/help/photos"
+ onClick={handleHelp}
+ />
+ <RowCard
+ title="Request a feature"
+ subtitle="github.com/ente/ente"
+ onClick={handleRequestFeature}
+ />
+ <RowCard
+ title={t("support")}
+ subtitle="[email protected]"
+ onClick={handleSupport}
+ />
+ <Divider sx={{ my: 1, opacity: 0.4 }} />
+ <RowCard
+ title={t("view_logs")}
+ subtitle="Share with support when something goes wrong"
+ onClick={confirmViewLogs}
+ />
+ <Stack
+ direction="row"
+ sx={{
+ p: "14px 8px 14px 0.5rem",
+ justifyContent: "space-between",
+ alignItems: "center",
+ }}
+ >
+ <Stack>
+ <Typography sx={{ fontWeight: "medium" }}>
+ About
+ </Typography>
+ <Typography
+ variant="small"
+ sx={{
+ color: "text.muted",
+ fontWeight: 400,
+ lineHeight: "20px",
+ }}
+ >
+ {desktopAppVersion
+ ? `Photos v${desktopAppVersion}`
+ : "Ente Photos"}
+ </Typography>
+ </Stack>
+ {desktopAppVersion && (
+ <Typography
+ variant="small"
+ sx={{ color: "text.muted", fontWeight: 400 }}
+ >
+ {`v${desktopAppVersion}`}
+ </Typography>
+ )}
+ </Stack>
+ <Divider sx={{ my: 1, opacity: 0.4 }} />
</Stack>
</TitledNestedSidebarDrawer>
);