💬(demo) transform gender form into sex

To stick to civil information we rename gender field to sex.
This commit is contained in:
jbpenrath
2024-02-14 00:40:10 +01:00
committed by Jean-Baptiste PENRATH
parent 0ade12251e
commit 7320671589
3 changed files with 45 additions and 48 deletions

View File

@@ -27,7 +27,7 @@ export const Create = ({ changePage }: PageProps) => {
const character: Character = {
id: faker.string.uuid(),
name: inputRef.current?.value || "",
gender: "male",
sex: "male",
isGuest: false,
...randomDates(),
};
@@ -52,7 +52,7 @@ export const Create = ({ changePage }: PageProps) => {
fullWidth={true}
/>
<Select
label="Gender"
label="Sex"
fullWidth={true}
options={[
{
@@ -61,9 +61,6 @@ export const Create = ({ changePage }: PageProps) => {
{
label: "Female",
},
{
label: "Other",
},
]}
/>
<DatePicker label="Birth Date" fullWidth={true} />