Wrap SamlKeysDialog in FormProvider (#3975)

This commit is contained in:
Jon Koops 2022-12-12 00:46:19 +01:00 committed by GitHub
parent 9ac61efab4
commit 6f43a8d9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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