data-card: fix phone field disabled

This commit is contained in:
vchikalkin 2025-01-29 17:31:42 +03:00
parent 8be7e39f94
commit e6640f3b53

View File

@ -20,7 +20,7 @@ export function ContactDataCard({ telegramId }: Readonly<ProfileProps>) {
<Card className="p-4">
<div className="flex flex-col gap-4">
<Link href={customer?.phone ? `tel:${customer?.phone}` : ''}>
<DataField disabled id="phone" label="Телефон" readOnly value={customer?.phone ?? ''} />
<DataField id="phone" label="Телефон" readOnly value={customer?.phone ?? ''} />
</Link>
<Button asChild className="w-full bg-foreground">
<Link href={`https://t.me/${customer?.phone}`} rel="noopener noreferrer" target="_blank">
@ -51,7 +51,7 @@ export function ProfileDataCard() {
onChange={updateProfile}
value={customer?.name ?? ''}
/>
<DataField id="phone" label="Телефон" readOnly value={customer?.phone ?? ''} />
<DataField disabled id="phone" label="Телефон" readOnly value={customer?.phone ?? ''} />
<CheckboxWithText
checked={customer.role !== 'client'}
description="Разрешить другим пользователям записываться к вам"