Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Replace labelOptional to actions in Auth config forms

Joshen Lim6d8ed18d4ec4
diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
index 37f8a59dcb9..790936be139 100644
--- a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
+++ b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx
@@ -155,12 +155,14 @@ const ProviderForm: FC<Props> = ({ provider }) => {
</ReactMarkdown>
) : null
}
- labelOptional={
- properties.descriptionOptional ? (
- <ReactMarkdown unwrapDisallowed disallowedElements={['p']}>
- {properties.descriptionOptional}
- </ReactMarkdown>
- ) : null
+ actions={
+ <span className="text-scale-900 mr-3">
+ {properties.descriptionOptional ? (
+ <ReactMarkdown unwrapDisallowed disallowedElements={['p']}>
+ {properties.descriptionOptional}
+ </ReactMarkdown>
+ ) : null}
+ </span>
}
/>
)
@@ -181,12 +183,14 @@ const ProviderForm: FC<Props> = ({ provider }) => {
</ReactMarkdown>
) : null
}
- labelOptional={
- properties.descriptionOptional ? (
- <ReactMarkdown unwrapDisallowed disallowedElements={['p']}>
- {properties.descriptionOptional}
- </ReactMarkdown>
- ) : null
+ actions={
+ <span className="text-scale-900 mr-3">
+ {properties.descriptionOptional ? (
+ <ReactMarkdown unwrapDisallowed disallowedElements={['p']}>
+ {properties.descriptionOptional}
+ </ReactMarkdown>
+ ) : null}
+ </span>
}
/>
)
diff --git a/studio/components/interfaces/Auth/AutoSchemaForm.tsx b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
index 0e8d2addf93..80b34a3c793 100644
--- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx
+++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx
@@ -124,16 +124,16 @@ const AutoSchemaForm = observer(() => {
id="JWT_EXP"
size="small"
label="JWT expiry limit"
- labelOptional="In seconds"
descriptionText="How long tokens are valid for. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week)."
+ actions={<span className="text-scale-900 mr-3">In seconds</span>}
/>
<InputNumber
id="SECURITY_REFRESH_TOKEN_REUSE_INTERVAL"
size="small"
min={0}
label="Reuse Interval"
- labelOptional="In seconds"
descriptionText="Time interval where the same refresh token can be used to request for an access token."
+ actions={<span className="text-scale-900 mr-3">In seconds</span>}
/>
</FormSectionContent>
</FormSection>
diff --git a/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx b/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
index 0eeb68dc7bd..53819dfecb8 100644
--- a/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
+++ b/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx
@@ -240,8 +240,8 @@ const SmtpForm = () => {
id="SMTP_MAX_FREQUENCY"
min={0}
label="Minimum interval between emails being sent"
- labelOptional="In seconds"
descriptionText="How long between each email can a new email be sent via your SMTP server."
+ actions={<span className="text-scale-900 mr-3">In seconds</span>}
/>
<InputNumber
name="RATE_LIMIT_EMAIL_SENT"