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>,
|
</Button>,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
<FormProvider {...form}>
|
||||||
<Form isHorizontal>
|
<Form isHorizontal>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("selectMethod")}
|
label={t("selectMethod")}
|
||||||
|
@ -210,11 +211,8 @@ export const SamlKeysDialog = ({
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Form>
|
</Form>
|
||||||
)}
|
)}
|
||||||
{type && (
|
{type && <KeyForm useFile />}
|
||||||
<FormProvider {...form}>
|
|
||||||
<KeyForm useFile />
|
|
||||||
</FormProvider>
|
</FormProvider>
|
||||||
)}
|
|
||||||
</Modal>
|
</Modal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue