Skip to content

Commit

Permalink
feat: change order of pitch submit fields (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Aug 1, 2023
1 parent 2978dcd commit e073812
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions src/pages/submit/pitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,38 +133,6 @@ export default function SubmitPitchProposal() {
/>
<PostLabel>{t('page.submit_pitch.initiative_name_postlabel')}</PostLabel>
</ContentSection>
<ContentSection>
<Label>
{t('page.submit_pitch.target_audience_label')}
<MarkdownNotice />
</Label>
<SubLabel>{t('page.submit_pitch.target_audience_detail')}</SubLabel>
<MarkdownField
control={control}
name="target_audience"
rules={{
required: { value: true, message: t('error.pitch.target_audience_empty') },
minLength: {
value: schema.target_audience.minLength,
message: t('error.pitch.target_audience_too_short'),
},
maxLength: {
value: schema.target_audience.maxLength,
message: t('error.pitch.target_audience_too_large'),
},
}}
disabled={submissionVpNotMet || formDisabled}
error={!!errors.target_audience}
message={
(errors.target_audience?.message || '') +
' ' +
t('page.submit.character_counter', {
current: watch('target_audience').length,
limit: schema.target_audience.maxLength,
})
}
/>
</ContentSection>
<ContentSection>
<Label>
{t('page.submit_pitch.problem_statement_label')}
Expand Down Expand Up @@ -229,6 +197,38 @@ export default function SubmitPitchProposal() {
}
/>
</ContentSection>
<ContentSection>
<Label>
{t('page.submit_pitch.target_audience_label')}
<MarkdownNotice />
</Label>
<SubLabel>{t('page.submit_pitch.target_audience_detail')}</SubLabel>
<MarkdownField
control={control}
name="target_audience"
rules={{
required: { value: true, message: t('error.pitch.target_audience_empty') },
minLength: {
value: schema.target_audience.minLength,
message: t('error.pitch.target_audience_too_short'),
},
maxLength: {
value: schema.target_audience.maxLength,
message: t('error.pitch.target_audience_too_large'),
},
}}
disabled={submissionVpNotMet || formDisabled}
error={!!errors.target_audience}
message={
(errors.target_audience?.message || '') +
' ' +
t('page.submit.character_counter', {
current: watch('target_audience').length,
limit: schema.target_audience.maxLength,
})
}
/>
</ContentSection>
<ContentSection>
<Label>
{t('page.submit_pitch.relevance_label')}
Expand Down

0 comments on commit e073812

Please sign in to comment.