Skip to content

Commit

Permalink
fix: enhance phone number input UX
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsp45 committed Oct 18, 2023
1 parent 6dae3cb commit c3acb59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/app/components/Register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ function Register({ cities }: any) {
rules={[
{
required: true,
pattern: /^\+3519[12356]\d{7}$/,
pattern: /^\9[12356]\d{7}$/,
message: "Não é um número de telemóvel válido",
},
]}
>
<Input
addonBefore={<CountrySelect />}
placeholder="+3519x0011222"
placeholder="9x0011222"
type="tel"
/>
</Form.Item>
Expand Down

0 comments on commit c3acb59

Please sign in to comment.