Skip to content

Commit

Permalink
Fix(Orgs): console error for setting gridArea on a DOM element (#5137)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmealy authored Feb 26, 2025
1 parent 8d3aa11 commit 10e053f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const RoleMenuItem = ({

return (
<Box width="100%" alignItems="center" className={css.roleMenuItem}>
<SvgIcon mr={1} gridArea="icon" component={isAdmin ? adminIcon : memberIcon} inheritViewBox fontSize="small" />
<Box sx={{ gridArea: 'icon', display: 'flex', alignItems: 'center' }}>
<SvgIcon mr={1} component={isAdmin ? adminIcon : memberIcon} inheritViewBox fontSize="small" />
</Box>
<Typography gridArea="title" fontWeight={hasDescription ? 'bold' : undefined}>
{isAdmin ? 'Admin' : 'Member'}
</Typography>
Expand Down

0 comments on commit 10e053f

Please sign in to comment.