Skip to content

Commit 8f43a23

Browse files
kruscheclaude
andcommitted
Fix div-inside-p hydration error in ResearchGroupCard
Move Flex outside of Text to avoid nesting a div inside a p element, which caused a React hydration error in the browser console. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31b5b2d commit 8f43a23

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

client/src/pages/ResearchGroupAdminPage/components/ResearchGroupCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ const ResearchGroupCard = (props: IResearchGroup) => {
6363
</Flex>
6464

6565
<Stack gap={5} style={{ flexGrow: 1 }}>
66-
<Text size='sm' c='dimmed' py={5}>
67-
<Flex justify={'start'} align={'center'} gap={5}>
68-
<Buildings size={16} />
66+
<Flex justify={'start'} align={'center'} gap={5} py={5}>
67+
<Buildings size={16} color='var(--mantine-color-dimmed)' style={{ flexShrink: 0 }} />
68+
<Text size='sm' c='dimmed'>
6969
{props.campus ? props.campus : 'No campus specified'}
70-
</Flex>
71-
</Text>
70+
</Text>
71+
</Flex>
7272

7373
<Text size='sm' c='dimmed'>
7474
{props.description ? props.description : 'No description provided'}

0 commit comments

Comments
 (0)