Skip to content

Commit

Permalink
chore: up competitin signup fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamerblue committed Dec 8, 2024
1 parent f42f254 commit 50179e9
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/pages/competitions-public/$id/intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,24 @@ class CompetitionIntro extends React.Component<Props, State> {
{
name: 'Nickname (VERY IMPORTANT)',
field: 'nickname',
placeholder: '起个有意思的昵称,将会在比赛和颁奖仪式展示',
placeholder: 'Used to display in the ranklist and ceremonies',
component: 'input',
initialValue: data?.info?.nickname || '',
rules: [
{ required: true, message: 'Please input nickname' },
{ max: 10, message: 'Nickname cannot be longer than 10 characters' },
],
},
// {
// name: 'Unofficial Participation',
// field: 'unofficial',
// component: 'select',
// initialValue: String(data?.unofficialParticipation || false),
// options: [
// { name: 'Yes', value: true },
// { name: 'No', value: false },
// ],
// },
{
name: 'Unofficial Participation',
field: 'unofficial',
component: 'select',
initialValue: String(data?.unofficialParticipation || false),
options: [
{ name: 'Yes', value: true },
{ name: 'No', value: false },
],
},
{
name: 'Real Name',
field: 'realName',
Expand Down Expand Up @@ -199,16 +199,16 @@ class CompetitionIntro extends React.Component<Props, State> {
component: 'input',
initialValue: data?.info?.qq || '',
},
{
name: 'Clothing Size',
field: 'clothing',
component: 'select',
initialValue: data?.info?.clothing || '',
options: CLOTHING_SIZES.map((item) => ({
value: item,
name: item,
})),
},
// {
// name: 'Clothing Size',
// field: 'clothing',
// component: 'select',
// initialValue: data?.info?.clothing || '',
// options: CLOTHING_SIZES.map((item) => ({
// value: item,
// name: item,
// })),
// },
{
name: 'Slogan (optional)',
field: 'slogan',
Expand Down

0 comments on commit 50179e9

Please sign in to comment.