profile: add call feature

This commit is contained in:
vchikalkin 2025-01-15 18:20:56 +03:00
parent 53c74d565f
commit d987c98b30

View File

@ -42,13 +42,15 @@ export function ProfileCard({ telegramId }: ProfileCardProps) {
value={customer?.name ?? ''}
/>
)}
<ProfileField
disabled
id="phone"
label="Телефон"
readOnly={Boolean(telegramId)}
value={customer?.phone ?? ''}
/>
<Link href={telegramId && customer?.phone ? `tel:${customer?.phone}` : ''}>
<ProfileField
disabled={!telegramId}
id="phone"
label="Телефон"
readOnly={Boolean(telegramId)}
value={customer?.phone ?? ''}
/>
</Link>
{telegramId ? (
false
) : (