am i allowed to get away with spreading it
This commit is contained in:
parent
13feb970b0
commit
0c579279fa
3 changed files with 12 additions and 12 deletions
|
@ -26,8 +26,7 @@ export default function ClanFormTemplate({
|
||||||
return (
|
return (
|
||||||
<Formik
|
<Formik
|
||||||
initialValues={
|
initialValues={
|
||||||
initialValues ??
|
{
|
||||||
({
|
|
||||||
name: "",
|
name: "",
|
||||||
description: "",
|
description: "",
|
||||||
url: "",
|
url: "",
|
||||||
|
@ -37,8 +36,9 @@ export default function ClanFormTemplate({
|
||||||
pronouns: [["", "", ""]]
|
pronouns: [["", "", ""]]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
code: getCookie("TROLLCALL_CODE")
|
code: getCookie("TROLLCALL_CODE"),
|
||||||
} as SubmitClan)
|
...(initialValues ?? {})
|
||||||
|
} as SubmitClan
|
||||||
}
|
}
|
||||||
validationSchema={SubmitClanSchema}
|
validationSchema={SubmitClanSchema}
|
||||||
onSubmit={async (values, { setSubmitting, setErrors, setFieldError }) => {
|
onSubmit={async (values, { setSubmitting, setErrors, setFieldError }) => {
|
||||||
|
|
|
@ -24,12 +24,12 @@ export default function MessageFormTemplate({
|
||||||
return (
|
return (
|
||||||
<Formik
|
<Formik
|
||||||
initialValues={
|
initialValues={
|
||||||
initialValues ??
|
{
|
||||||
({
|
|
||||||
to: "",
|
to: "",
|
||||||
body: "",
|
body: "",
|
||||||
subject: ""
|
subject: "",
|
||||||
} as SubmitMessage)
|
...(initialValues ?? {})
|
||||||
|
} as SubmitMessage
|
||||||
}
|
}
|
||||||
validationSchema={SubmitMessageSchema}
|
validationSchema={SubmitMessageSchema}
|
||||||
onSubmit={async (values, { setSubmitting, setErrors, setFieldError }) => {
|
onSubmit={async (values, { setSubmitting, setErrors, setFieldError }) => {
|
||||||
|
|
|
@ -33,8 +33,7 @@ export default function TrollFormTemplate({
|
||||||
return (
|
return (
|
||||||
<Formik
|
<Formik
|
||||||
initialValues={
|
initialValues={
|
||||||
initialValues ??
|
{
|
||||||
({
|
|
||||||
name: ["", ""],
|
name: ["", ""],
|
||||||
description: "",
|
description: "",
|
||||||
pronunciation: ["", ""],
|
pronunciation: ["", ""],
|
||||||
|
@ -44,8 +43,9 @@ export default function TrollFormTemplate({
|
||||||
["they", "them", "theirs"]
|
["they", "them", "theirs"]
|
||||||
],
|
],
|
||||||
gender: "",
|
gender: "",
|
||||||
images: [""]
|
images: [""],
|
||||||
} as SubmitTroll)
|
...(initialValues ?? {})
|
||||||
|
} as SubmitTroll
|
||||||
}
|
}
|
||||||
validationSchema={SubmitTrollSchema}
|
validationSchema={SubmitTrollSchema}
|
||||||
onSubmit={async (values, { setSubmitting, setErrors, setFieldError }) => {
|
onSubmit={async (values, { setSubmitting, setErrors, setFieldError }) => {
|
||||||
|
|
Loading…
Reference in a new issue