Account settings page.
This commit is contained in:
@@ -9,6 +9,11 @@ import FormLayout, {
|
||||
FormRow,
|
||||
} from 'components/layout/FormLayout';
|
||||
|
||||
const initialValues = {
|
||||
name: '',
|
||||
domain: '',
|
||||
};
|
||||
|
||||
const validate = ({ name, domain }) => {
|
||||
const errors = {};
|
||||
|
||||
@@ -37,7 +42,11 @@ export default function WebsiteEditForm({ values, onSave, onClose }) {
|
||||
|
||||
return (
|
||||
<FormLayout>
|
||||
<Formik initialValues={values} validate={validate} onSubmit={handleSubmit}>
|
||||
<Formik
|
||||
initialValues={{ ...initialValues, ...values }}
|
||||
validate={validate}
|
||||
onSubmit={handleSubmit}
|
||||
>
|
||||
{() => (
|
||||
<Form>
|
||||
<FormRow>
|
||||
|
||||
Reference in New Issue
Block a user