Adds electoral nuclei, leaderships, updates, and WhatsApp invite flows behind campaign auth, plus the consolidated schema migration that Vercel applies on deploy.
21 lines
521 B
TypeScript
21 lines
521 B
TypeScript
import type { ComponentProps } from 'react'
|
|
|
|
import { formatBrazilianPhoneInput, sanitizeBrazilianPhoneInput } from '@/utilities/phone'
|
|
|
|
import { FormInput } from './FormInput'
|
|
|
|
export const PhoneInput = (props: ComponentProps<'input'>) => (
|
|
<FormInput
|
|
name="phone"
|
|
id="phone"
|
|
placeholder="(71) 99999-9999"
|
|
autoComplete="tel"
|
|
inputMode="tel"
|
|
type="tel"
|
|
maxLength={19}
|
|
minLength={15}
|
|
format={formatBrazilianPhoneInput}
|
|
sanitize={sanitizeBrazilianPhoneInput}
|
|
{...props}
|
|
/>
|
|
)
|