chore: Convert <Text /> component to span by default

This commit is contained in:
Tom Moor
2024-01-30 22:49:31 -05:00
parent a960d8cee5
commit 5ce8827a8c
56 changed files with 93 additions and 97 deletions

View File

@@ -89,11 +89,7 @@ const Modal: React.FC<Props> = ({
<ErrorBoundary component="div">{children}</ErrorBoundary>
</SmallContent>
<Header>
{title && (
<Text as="span" size="large">
{title}
</Text>
)}
{title && <Text size="large">{title}</Text>}
<NudeButton onClick={onRequestClose}>
<CloseIcon />
</NudeButton>
@@ -127,7 +123,7 @@ const Modal: React.FC<Props> = ({
</Close>
<Back onClick={onRequestClose}>
<BackIcon size={32} />
<Text as="span">{t("Back")} </Text>
<Text>{t("Back")} </Text>
</Back>
</Fullscreen>
)