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

@@ -33,7 +33,7 @@ const HelpDisclosure: React.FC<Props> = ({ title, children }: Props) => {
)}
</Disclosure>
<HelpContent {...disclosure}>
<Text type="secondary">
<Text as="p" type="secondary">
<br />
{children}
</Text>

View File

@@ -14,7 +14,7 @@ function ImportJSONDialog() {
return (
<Flex column>
<Text type="secondary">
<Text as="p" type="secondary">
<DropToImport
onSubmit={dialogs.closeAllModals}
format={FileOperationFormat.JSON}

View File

@@ -14,7 +14,7 @@ function ImportMarkdownDialog() {
return (
<Flex column>
<Text type="secondary">
<Text as="p" type="secondary">
<DropToImport
onSubmit={dialogs.closeAllModals}
format={FileOperationFormat.MarkdownZip}

View File

@@ -13,7 +13,7 @@ function ImportNotionDialog() {
return (
<Flex column>
<Text type="secondary">
<Text as="p" type="secondary">
<DropToImport
onSubmit={dialogs.closeAllModals}
format={FileOperationFormat.Notion}

View File

@@ -74,7 +74,11 @@ const SettingRow: React.FC<Props> = ({
<Label as="h3">
<label htmlFor={name}>{label}</label>
</Label>
{description && <Text type="secondary">{description}</Text>}
{description && (
<Text as="p" type="secondary">
{description}
</Text>
)}
</Column>
<Column>{children}</Column>
</Row>