chore: Convert <Text /> component to span by default
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -14,7 +14,7 @@ function ImportJSONDialog() {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<DropToImport
|
||||
onSubmit={dialogs.closeAllModals}
|
||||
format={FileOperationFormat.JSON}
|
||||
|
||||
@@ -14,7 +14,7 @@ function ImportMarkdownDialog() {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<DropToImport
|
||||
onSubmit={dialogs.closeAllModals}
|
||||
format={FileOperationFormat.MarkdownZip}
|
||||
|
||||
@@ -13,7 +13,7 @@ function ImportNotionDialog() {
|
||||
|
||||
return (
|
||||
<Flex column>
|
||||
<Text type="secondary">
|
||||
<Text as="p" type="secondary">
|
||||
<DropToImport
|
||||
onSubmit={dialogs.closeAllModals}
|
||||
format={FileOperationFormat.Notion}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user