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

@@ -75,7 +75,7 @@ function Slack() {
</Trans>
</Notice>
)}
<Text type="secondary">
<Text as="p" type="secondary">
<Trans
defaults="Get rich previews of {{ appName }} links shared in Slack and use the <em>{{ command }}</em> slash command to search for documents without leaving your chat."
values={{
@@ -113,7 +113,7 @@ function Slack() {
<p>&nbsp;</p>
<h2>{t("Collections")}</h2>
<Text type="secondary">
<Text as="p" type="secondary">
<Trans>
Connect {{ appName }} collections to Slack channels. Messages will
be automatically posted to Slack when documents are published or

View File

@@ -80,7 +80,7 @@ function SlackListItem({ integration, collection }: Props) {
<Popover {...popover} aria-label={t("Settings")}>
<Events>
<h3>{t("Notifications")}</h3>
<Text type="secondary">
<Text as="p" type="secondary">
{t("These events should be posted to Slack")}
</Text>
<Switch

View File

@@ -45,7 +45,7 @@ function Webhooks() {
}
>
<Heading>{t("Webhooks")}</Heading>
<Text type="secondary">
<Text as="p" type="secondary">
<Trans>
Webhooks can be used to notify your application when events happen in{" "}
{{ appName }}. Events are sent as a https request with a JSON payload

View File

@@ -231,7 +231,7 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) {
return (
<form onSubmit={formHandleSubmit(handleSubmit)}>
<Text type="secondary">
<Text as="p" type="secondary">
<Trans>
Provide a descriptive name for this webhook and the URL we should send
a POST request to when matching events are created.
@@ -266,7 +266,7 @@ function WebhookSubscriptionForm({ handleSubmit, webhookSubscription }: Props) {
})}
/>
</TextFields>
<Text type="secondary">
<Text as="p" type="secondary">
<Trans>
Subscribe to all events, groups, or individual events. We recommend
only subscribing to the minimum amount of events that your application