Bazaar: Remove h4 from ItemCardHeader title props
Since the title will be wrapped by a h4 in the "ItemCardHeader" a h4 will have a h4 element as child. And the following warning is logged: warning: validateDOMNesting(...): <h4> cannot appear as a child of <h4>. Signed-off-by: Niklas Aronsson <niklasar@axis.com>
This commit is contained in:
@@ -94,11 +94,7 @@ export const ProjectCard = ({
|
||||
<CardActionArea onClick={() => setOpenCard(true)}>
|
||||
<ItemCardHeader
|
||||
classes={{ root: classes.header }}
|
||||
title={
|
||||
<Typography noWrap variant="h6" component="h4">
|
||||
{title}
|
||||
</Typography>
|
||||
}
|
||||
title={title}
|
||||
subtitle={`updated ${DateTime.fromISO(
|
||||
new Date(updatedAt!).toISOString(),
|
||||
).toRelative({
|
||||
|
||||
Reference in New Issue
Block a user