fix(TitleAndSubCell): Text components' tag props are set to span to prevent <p> in <p> (#373)
This commit is contained in:
parent
9c3a6a0482
commit
8df8aa6a12
@ -12,10 +12,10 @@ interface Props {
|
|||||||
export default function TitleAndSubCell(props: Props) {
|
export default function TitleAndSubCell(props: Props) {
|
||||||
return (
|
return (
|
||||||
<div className={classNames('flex flex-col gap-[0.5]', props.containerClassName)}>
|
<div className={classNames('flex flex-col gap-[0.5]', props.containerClassName)}>
|
||||||
<Text size='xs' className={props.className}>
|
<Text size='xs' className={props.className} tag='span'>
|
||||||
{props.title}
|
{props.title}
|
||||||
</Text>
|
</Text>
|
||||||
<Text size='xs' className={classNames('text-white/50', props.className)}>
|
<Text size='xs' className={classNames('text-white/50', props.className)} tag='span'>
|
||||||
{props.sub}
|
{props.sub}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user