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 a1f345a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default {
"Pressure City Label": "Cidade",
"Pressure City Placeholder": "Insira sua cidade",
"Pressure State Label": "Estado",
"Pressure Phone Label": "Whatsapp",
"Pressure Phone Placeholder": "(DDD) X XXXX-XXXX",
"Pressure Email Label": "E-mail",
"Pressure Email Placeholder": "Insira seu e-mail",
"Pressure Subject Label": "Assunto",
Expand All @@ -32,5 +34,5 @@ export default {
"Pressure Network Failed": "Houve um erro ao fazer a pressão",
"Pressure TargetBlank Validation": "Ops, você precisa selecionar pelo menos um alvo para poder pressionar",
"Political Filename": "politica-de-privacidade",
"Share Social Midia": "Compartilhar no {{app}}"
"Share Social Midia": "Compartilhar no {{app}}",
}

0 comments on commit a1f345a

Please sign in to comment.