Skip to content

Commit

Permalink
fix: Invalid table warnings (#3873)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Oct 29, 2024
1 parent e65e434 commit 815dc27
Showing 1 changed file with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,19 @@ export const MembersTable = ({
</TableRow>
</TableHead>
{showAddMemberButton && (
<TableRow>
<TableCell colSpan={3}>
<AddButton
onClick={() => {
addUser();
}}
>
Add a new editor
</AddButton>
</TableCell>
</TableRow>
<TableBody>
<TableRow>
<TableCell colSpan={3}>
<AddButton
onClick={() => {
addUser();
}}
>
Add a new editor
</AddButton>
</TableCell>
</TableRow>
</TableBody>
)}
</Table>
{showModal && (
Expand Down Expand Up @@ -130,7 +132,7 @@ export const MembersTable = ({
</TableCell>
<TableCell>
<strong>Email</strong>
</TableCell>{" "}
</TableCell>
{
// empty table cells for styling across buttons
}
Expand All @@ -141,7 +143,7 @@ export const MembersTable = ({
<TableBody
data-testid={`members-table${showAddMemberButton && "-add-editor"}`}
>
{members.map((member, i) => (
{members.map((member) => (
<StyledTableRow key={member.id}>
<TableCell
sx={{
Expand Down

0 comments on commit 815dc27

Please sign in to comment.