Skip to content

Commit 93c0a10

Browse files
committed
fix: warning due to nested Text
1 parent fb01ae0 commit 93c0a10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/src/views/Colors.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export function Colors({withText = false}: {withText?: boolean}) {
2727
<div style={styles}>
2828
</div>
2929
{withText && (
30-
<Text fontFamily="monospace">
31-
<Text>{_key}.{weight}</Text>
32-
<Text color="neutrals.500">{colorValue}</Text>
33-
</Text>
30+
<div>
31+
<Text fontFamily="monospace">{_key}.{weight}</Text>
32+
<Text fontFamily="monospace" color={colors.neutrals['500']}>{colorValue}</Text>
33+
</div>
3434
)}
3535
</VStack>
3636
)

0 commit comments

Comments
 (0)