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