Skip to content

Commit

Permalink
Merge pull request #1692 from nossas/feature/add-phone-field-config-p…
Browse files Browse the repository at this point in the history
…ressure

feat(canary): add field to phone on pressure widget settings
  • Loading branch information
igr-santos authored Oct 29, 2024
2 parents 8299518 + 08bb4cd commit 81a241d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@
"no": "Não"
}
},
"phone": {
"title": "Incluir campo de telefone?",
"radio": {
"yes": "Sim",
"no": "Não"
}
},
"main_color": {
"label": "Cor padrão",
"tooltip": "Selecione a cor no box abaixo ou insira o valor em hex, por exemplo: #DC3DCE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const AdjustsFields = ({ widget, updateCache }: any) => {
settings: {
show_city: "city-false",
show_state: "n",
show_phone: "n",
...widget.settings
}
}}
Expand Down Expand Up @@ -71,6 +72,15 @@ const AdjustsFields = ({ widget, updateCache }: any) => {
<Radio value='city-true'>{t('settings.adjusts.fields.city.radio.yes')}</Radio>
<Radio value='city-false'>{t('settings.adjusts.fields.city.radio.no')}</Radio>
</RadioField>

<RadioField
name='settings.show_phone'
label={t('settings.adjusts.fields.phone.title')}
columns="auto auto 1fr"
>
<Radio value='s'>{t('settings.adjusts.fields.phone.radio.yes')}</Radio>
<Radio value='n'>{t('settings.adjusts.fields.phone.radio.no')}</Radio>
</RadioField>
</>
)}
<ColorField
Expand Down

0 comments on commit 81a241d

Please sign in to comment.