Account settings page.

This commit is contained in:
Mike Cao 2020-08-08 23:48:43 -07:00
parent 58a1be7a30
commit b5cf9f8719
32 changed files with 597 additions and 162 deletions

View file

@ -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>