mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
fix: types
This commit is contained in:
parent
cbebac1d45
commit
f5eb406394
@ -11,7 +11,9 @@ type SelectFieldProps = {
|
|||||||
options: Option[]
|
options: Option[]
|
||||||
onChange?: (value: string) => void
|
onChange?: (value: string) => void
|
||||||
className?: string
|
className?: string
|
||||||
} & Omit<PureSelectProps, 'options' | 'value' | 'onChange'>
|
} & Omit<PureSelectProps, 'options' | 'value' | 'onChange' | 'multiple'> & {
|
||||||
|
multiple?: false
|
||||||
|
}
|
||||||
|
|
||||||
const SelectField = ({
|
const SelectField = ({
|
||||||
label,
|
label,
|
||||||
|
|||||||
@ -144,7 +144,9 @@ const ApiKeyModal = ({
|
|||||||
clickOutsideNotClose={true}
|
clickOutsideNotClose={true}
|
||||||
wrapperClassName='!z-[101]'
|
wrapperClassName='!z-[101]'
|
||||||
>
|
>
|
||||||
<ReadmeEntrance pluginDetail={pluginPayload.detail} showType={ReadmeShowType.modal} />
|
{pluginPayload.detail && (
|
||||||
|
<ReadmeEntrance pluginDetail={pluginPayload.detail} showType={ReadmeShowType.modal} />
|
||||||
|
)}
|
||||||
{
|
{
|
||||||
isLoading && (
|
isLoading && (
|
||||||
<div className='flex h-40 items-center justify-center'>
|
<div className='flex h-40 items-center justify-center'>
|
||||||
|
|||||||
@ -160,7 +160,9 @@ const OAuthClientSettings = ({
|
|||||||
wrapperClassName='!z-[101]'
|
wrapperClassName='!z-[101]'
|
||||||
clickOutsideNotClose={true}
|
clickOutsideNotClose={true}
|
||||||
>
|
>
|
||||||
<ReadmeEntrance pluginDetail={pluginPayload.detail} showType={ReadmeShowType.modal} />
|
{pluginPayload.detail && (
|
||||||
|
<ReadmeEntrance pluginDetail={pluginPayload.detail} showType={ReadmeShowType.modal} />
|
||||||
|
)}
|
||||||
<AuthForm
|
<AuthForm
|
||||||
formFromProps={form}
|
formFromProps={form}
|
||||||
ref={formRef}
|
ref={formRef}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user