mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
Update helper text
This commit is contained in:
1 parent
f9537c5304
commit
0531ec2637
4 files changed
+32
-5
No files matched your search
@@ -21,7 +21,7 @@ function classNames(...classes: any) {
|
||||
export interface Props extends Omit<React.InputHTMLAttributes<HTMLButtonElement>, 'size'> {
|
||||
className?: string
|
||||
children: React.ReactNode
|
||||
descriptionText?: string
|
||||
descriptionText?: string | React.ReactNode
|
||||
error?: string
|
||||
icon?: any
|
||||
id?: string
|
||||
|
||||
@@ -103,7 +103,17 @@ const FormField: FC<Props> = ({ name, properties, formValues, disabled = false }
|
||||
name={name}
|
||||
disabled={disabled}
|
||||
label={properties.title}
|
||||
descriptionText={properties.description}
|
||||
descriptionText={
|
||||
properties.description ? (
|
||||
<ReactMarkdown
|
||||
unwrapDisallowed
|
||||
disallowedElements={['p']}
|
||||
className="form-field-markdown"
|
||||
>
|
||||
{properties.description}
|
||||
</ReactMarkdown>
|
||||
) : null
|
||||
}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -114,7 +124,17 @@ const FormField: FC<Props> = ({ name, properties, formValues, disabled = false }
|
||||
name={name}
|
||||
disabled={disabled}
|
||||
label={properties.title}
|
||||
descriptionText={properties.description}
|
||||
descriptionText={
|
||||
properties.description ? (
|
||||
<ReactMarkdown
|
||||
unwrapDisallowed
|
||||
disallowedElements={['p']}
|
||||
className="form-field-markdown"
|
||||
>
|
||||
{properties.description}
|
||||
</ReactMarkdown>
|
||||
) : null
|
||||
}
|
||||
defaultValue={properties.enum[0]}
|
||||
>
|
||||
{properties.enum.map((option: Enum) => {
|
||||
|
||||
@@ -1004,8 +1004,9 @@ export const PROVIDER_SAML = {
|
||||
title: 'SAML 2.0',
|
||||
properties: {
|
||||
SAML_ENABLED: {
|
||||
title: 'Enable SAML SSO',
|
||||
description: 'Allows the use of SAML 2.0 Single Sign-On',
|
||||
title: 'Enable SAML 2.0 Single Sign-on',
|
||||
description:
|
||||
'You will need to use the [Supabase CLI](https://supabase.com/docs/guides/auth/sso/auth-sso-saml#managing-saml-20-connections) to set up SAML after enabling it',
|
||||
type: 'boolean',
|
||||
},
|
||||
},
|
||||
|
||||
@@ -413,3 +413,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-field-markdown {
|
||||
a {
|
||||
@apply text-brand-900 transition opacity-75 hover:opacity-100 underline;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user