Skip to content

Commit

Permalink
feat(webpage): add phone field to pressure form
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Oct 28, 2024
1 parent f6dd7b6 commit 6a0a237
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Props = {
settings: {
main_color: string;
show_city?: string;
show_phone?: string;
button_text: string;
pressure_subject?: string;
pressure_body?: string;
Expand Down Expand Up @@ -67,6 +68,7 @@ const PressureForm = ({
settings: {
show_city: showCity,
show_state: showState,
show_phone: showPhone,
main_color: buttonColor,
button_text: buttonText,
is_subject_list: isSubjectList = 'n',
Expand Down Expand Up @@ -210,6 +212,16 @@ 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 6a0a237

Please sign in to comment.