Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(webpage): add phone field to pressure form #1691

Merged
merged 4 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -146,6 +148,16 @@ const PressureForm = ({
</WrapInputs>
)}
{BeforeStandardFields && <MemoBeforeStandardFields />}
{showPhone && showPhone == 's' && (
<WrapInputs>
<InputField
label={t('Pressure Phone Label')}
name="phone"
placeholder={t('Pressure Phone Placeholder')}
mask="+55 (99) 9 9999-9999"
/>
</WrapInputs>
)}
<WrapInputs>
<InputField
label={t('Pressure Name Label')}
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": "Insira seu número com DDD",
"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}}",
}
Loading