feat: phone input formatting in CreateSessionModal and Input component
This commit is contained in:
@@ -80,7 +80,7 @@ export default function CreateSessionModal({ targetServerId, client }: Props) {
|
||||
.post("clients", {
|
||||
json: {
|
||||
name,
|
||||
phone,
|
||||
phone: phone?.replace(/\D/g, ""),
|
||||
email,
|
||||
},
|
||||
})
|
||||
@@ -208,6 +208,7 @@ export default function CreateSessionModal({ targetServerId, client }: Props) {
|
||||
value={phone || ""}
|
||||
onChange={(e) => setPhone(e.target.value)}
|
||||
placeholder="Номер телефона"
|
||||
mask="+7 (999) 999-99-99"
|
||||
required
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user