Skip to content

Commit 105a1f2

Browse files
committed
fix(Community): remove orphan table row and cell
1 parent 5af083f commit 105a1f2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/modals/Community/CommunityUserCard.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { PersonAdd, PersonRemove } from "@mui/icons-material";
2-
import { Avatar, Box, CircularProgress, TableCell, TableRow, Tooltip, Typography } from "@mui/material";
2+
import { Avatar, Box, CircularProgress, Divider, Tooltip, Typography } from "@mui/material";
33
import Button from "@mui/material/Button";
44
import { useState } from "react";
55

@@ -130,14 +130,15 @@ const CommunityUserCard = ({
130130
};
131131
return (
132132
<>
133-
<TableRow sx={{ display: "flex" }}>
134-
<TableCell
133+
<Box sx={{ display: "flex" }}>
134+
<Box
135135
sx={{
136136
display: "flex",
137137
justifyContent: "space-between",
138138
alignItems: "center",
139139
width: "100%",
140140
px: 0,
141+
py: 2,
141142
}}
142143
>
143144
<Box sx={{ display: "flex", alignItems: "center" }}>
@@ -183,8 +184,9 @@ const CommunityUserCard = ({
183184
</Box>
184185
</Box>
185186
{renderRelationshipActions(communityUser.relationship)}
186-
</TableCell>
187-
</TableRow>
187+
</Box>
188+
</Box>
189+
<Divider />
188190
{confirmDialogAction != null && (
189191
<ConfirmationDialog
190192
open={confirmDialogOpen}

0 commit comments

Comments
 (0)