Skip to content

armgit / ente

Public Imported from GitHub
0

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

match title casing to key in the UserData interface

mngshm6e2142c605ae
diff --git a/infra/staff/src/components/UserComponent.tsx b/infra/staff/src/components/UserComponent.tsx
index 426c9821b0..be2b1afb11 100644
--- a/infra/staff/src/components/UserComponent.tsx
+++ b/infra/staff/src/components/UserComponent.tsx
@@ -138,14 +138,10 @@ const DataTable: React.FC<DataTableProps> = ({
minHeight: 300,
display: "flex",
flexDirection: "column",
- marginBottom: "20px",
height: "100%",
width: "100%",
- padding: "13px",
+ padding: "10px",
overflowX: "hidden",
- "&:not(:last-child)": {
- marginBottom: "40px",
- },
}}
>
<Box
@@ -166,9 +162,9 @@ const DataTable: React.FC<DataTableProps> = ({
width: "100%",
}}
>
- {title}
+ {title.charAt(0).toUpperCase() + title.slice(1)}
</Typography>
- {title === "User" && (
+ {title === "user" && (
<IconButton
edge="start"
aria-label="delete"
@@ -177,7 +173,7 @@ const DataTable: React.FC<DataTableProps> = ({
<DeleteIcon style={{ color: "" }} />
</IconButton>
)}
- {title === "Subscription" && (
+ {title === "subscription" && (
<IconButton
edge="end"
aria-label="edit"