Skip to content

Commit

Permalink
fix(webpage): change order pressure form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Oct 29, 2024
1 parent a1f345a commit 9f3832c
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ const PressureForm = ({
</SelectField>
</WrapInputs>
)}
{BeforeStandardFields && <MemoBeforeStandardFields />}
<WrapInputs>
<InputField
label={t('Pressure Name Label')}
Expand All @@ -164,6 +163,17 @@ const PressureForm = ({
validate={required(t('Pressure Blank Validation'))}
/>
</WrapInputs>
{BeforeStandardFields && <MemoBeforeStandardFields />}
{showPhone && showPhone == 's' && (
<WrapInputs>
<InputField
label={t('Pressure Phone Label')}
name="phone"
placeholder={t('Pressure Phone Placeholder')}
validate={required(t('Pressure Blank Validation'))}
/>
</WrapInputs>
)}
{showState && showState === 's' && (
<WrapInputs>
<SelectField
Expand Down Expand Up @@ -212,16 +222,6 @@ const PressureForm = ({
/>
</WrapInputs>
)}
{showPhone && showPhone == 's' && (
<WrapInputs>
<InputField
label={t('Pressure Phone Label')}
name="phone"
placeholder={t('Pressure Phone Placeholder')}
validate={required(t('Pressure Blank Validation'))}
/>
</WrapInputs>
)}
{AfterStandardFields && <MemoAfterSantardFields />}
</WrapFields>
{errors.length >= 1 && (
Expand Down

0 comments on commit 9f3832c

Please sign in to comment.