fix: types

This commit is contained in:
lyzno1 2025-10-30 17:58:31 +08:00
parent cbebac1d45
commit f5eb406394
No known key found for this signature in database
3 changed files with 9 additions and 3 deletions

View File

@ -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,

View File

@ -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'>

View File

@ -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}