Skip to content

Commit 21fd6ab

Browse files
authored
[staff] match title casing to key in the UserData interface (#5812)
2 parents 1633868 + 6e2142c commit 21fd6ab

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

infra/staff/src/components/UserComponent.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,10 @@ const DataTable: React.FC<DataTableProps> = ({
138138
minHeight: 300,
139139
display: "flex",
140140
flexDirection: "column",
141-
marginBottom: "20px",
142141
height: "100%",
143142
width: "100%",
144-
padding: "13px",
143+
padding: "10px",
145144
overflowX: "hidden",
146-
"&:not(:last-child)": {
147-
marginBottom: "40px",
148-
},
149145
}}
150146
>
151147
<Box
@@ -166,9 +162,9 @@ const DataTable: React.FC<DataTableProps> = ({
166162
width: "100%",
167163
}}
168164
>
169-
{title}
165+
{title.charAt(0).toUpperCase() + title.slice(1)}
170166
</Typography>
171-
{title === "User" && (
167+
{title === "user" && (
172168
<IconButton
173169
edge="start"
174170
aria-label="delete"
@@ -177,7 +173,7 @@ const DataTable: React.FC<DataTableProps> = ({
177173
<DeleteIcon style={{ color: "" }} />
178174
</IconButton>
179175
)}
180-
{title === "Subscription" && (
176+
{title === "subscription" && (
181177
<IconButton
182178
edge="end"
183179
aria-label="edit"

0 commit comments

Comments
 (0)