mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-29 03:29:13 +00:00
feat: default makeup to partial instead of none
This commit is contained in:
parent
026ee50b9f
commit
eaa6c97c57
3 changed files with 4 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ const submitSchema = z
|
|||
|
||||
// Switch
|
||||
gender: z.enum(MiiGender).default("MALE"),
|
||||
makeup: z.enum(MiiMakeup).default("NONE"),
|
||||
makeup: z.enum(MiiMakeup).default("PARTIAL"),
|
||||
miiPortraitImage: z.union([z.instanceof(File), z.any()]).optional(),
|
||||
miiFeaturesImage: z.union([z.instanceof(File), z.any()]).optional(),
|
||||
instructions: switchMiiInstructionsSchema,
|
||||
|
|
@ -212,7 +212,7 @@ export async function POST(request: NextRequest) {
|
|||
}
|
||||
: {
|
||||
instructions: minifiedInstructions,
|
||||
makeup: makeup ?? "NONE",
|
||||
makeup: makeup ?? "PARTIAL",
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export default function EditForm({ mii, likes }: Props) {
|
|||
const [name, setName] = useState(mii.name);
|
||||
const [tags, setTags] = useState(mii.tags);
|
||||
const [description, setDescription] = useState(mii.description);
|
||||
const [makeup, setMakeup] = useState<MiiMakeup>(mii.makeup ?? "NONE");
|
||||
const [makeup, setMakeup] = useState<MiiMakeup>(mii.makeup ?? "PARTIAL");
|
||||
const hasFilesChanged = useRef(false);
|
||||
|
||||
const instructions = useRef<SwitchMiiInstructions>({ ...defaultInstructions, ...(mii.instructions as object as Partial<SwitchMiiInstructions>) });
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ export default function SubmitForm() {
|
|||
|
||||
const [platform, setPlatform] = useState<MiiPlatform>("SWITCH");
|
||||
const [gender, setGender] = useState<MiiGender>("MALE");
|
||||
const [makeup, setMakeup] = useState<MiiMakeup>("NONE");
|
||||
const [makeup, setMakeup] = useState<MiiMakeup>("PARTIAL");
|
||||
const instructions = useRef<SwitchMiiInstructions>(defaultInstructions);
|
||||
|
||||
const [error, setError] = useState<string | undefined>(undefined);
|
||||
|
|
|
|||
Loading…
Reference in a new issue