Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(settings):restore-root-sidebar-email

Aswin Asokc6394f1563d0
diff --git a/web/apps/photos/src/components/sidebar/Sidebar.tsx b/web/apps/photos/src/components/sidebar/Sidebar.tsx
index b3067f999e..0e0b2b5caa 100644
--- a/web/apps/photos/src/components/sidebar/Sidebar.tsx
+++ b/web/apps/photos/src/components/sidebar/Sidebar.tsx
@@ -10,7 +10,14 @@ import {
import { HugeiconsIcon } from "@hugeicons/react";
import CloseIcon from "@mui/icons-material/Close";
import LockOutlinedIcon from "@mui/icons-material/LockOutlined";
-import { Box, Divider, IconButton, Stack, styled } from "@mui/material";
+import {
+ Box,
+ Divider,
+ IconButton,
+ Skeleton,
+ Stack,
+ styled,
+} from "@mui/material";
import Typography from "@mui/material/Typography";
import { isDesktop } from "ente-base/app";
import { EnteLogo, EnteLogoBox } from "ente-base/components/EnteLogo";
@@ -387,6 +394,14 @@ const UserDetailsSection: React.FC<UserDetailsSectionProps> = ({
return (
<>
<Box sx={{ px: 0.5, mt: 1.5, pb: 1.5, mb: 1 }}>
+ <Typography sx={{ px: 1, pb: 1, color: "text.muted" }}>
+ {userDetails ? (
+ userDetails.email
+ ) : (
+ <Skeleton animation="wave" />
+ )}
+ </Typography>
+
<SubscriptionCard
userDetails={userDetails}
onClick={handleSubscriptionCardClick}