Wrap SamlKeysDialog
in FormProvider
(#3975)
This commit is contained in:
parent
9ac61efab4
commit
6f43a8d9ff
1 changed files with 56 additions and 58 deletions
|
@ -153,6 +153,7 @@ export const SamlKeysDialog = ({
|
|||
</Button>,
|
||||
]}
|
||||
>
|
||||
<FormProvider {...form}>
|
||||
<Form isHorizontal>
|
||||
<FormGroup
|
||||
label={t("selectMethod")}
|
||||
|
@ -210,11 +211,8 @@ export const SamlKeysDialog = ({
|
|||
</FormGroup>
|
||||
</Form>
|
||||
)}
|
||||
{type && (
|
||||
<FormProvider {...form}>
|
||||
<KeyForm useFile />
|
||||
{type && <KeyForm useFile />}
|
||||
</FormProvider>
|
||||
)}
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue