mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Account settings page.
This commit is contained in:
parent
58a1be7a30
commit
b5cf9f8719
32 changed files with 597 additions and 162 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue