admin(ui): fix box title on MountEditContainer.tsx
This commit is contained in:
parent
e70351cbad
commit
ee3b8e6432
|
@ -50,13 +50,13 @@ const EditInformationContainer = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const submit = ({ name, description, source, target, readOnly, userMountable }: Values, { setSubmitting }: FormikHelpers<Values>) => {
|
const submit = ({ name, description, source, target, readOnly, userMountable }: Values, { setSubmitting }: FormikHelpers<Values>) => {
|
||||||
clearFlashes('nest');
|
clearFlashes('mount');
|
||||||
|
|
||||||
updateMount(mount.id, name, description, source, target, readOnly, userMountable)
|
updateMount(mount.id, name, description, source, target, readOnly, userMountable)
|
||||||
.then(() => setMount({ ...mount, name, description, source, target, readOnly, userMountable }))
|
.then(() => setMount({ ...mount, name, description, source, target, readOnly, userMountable }))
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
clearAndAddHttpError({ key: 'nest', error });
|
clearAndAddHttpError({ key: 'mount', error });
|
||||||
})
|
})
|
||||||
.then(() => setSubmitting(false));
|
.then(() => setSubmitting(false));
|
||||||
};
|
};
|
||||||
|
@ -84,7 +84,7 @@ const EditInformationContainer = () => {
|
||||||
{
|
{
|
||||||
({ isSubmitting, isValid }) => (
|
({ isSubmitting, isValid }) => (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<AdminBox title={'Edit Nest'} css={tw`relative`}>
|
<AdminBox title={'Edit Mount'} css={tw`relative`}>
|
||||||
<SpinnerOverlay visible={isSubmitting}/>
|
<SpinnerOverlay visible={isSubmitting}/>
|
||||||
|
|
||||||
<Form css={tw`mb-0`}>
|
<Form css={tw`mb-0`}>
|
||||||
|
|
Loading…
Reference in New Issue