profile: add call feature
This commit is contained in:
parent
53c74d565f
commit
d987c98b30
@ -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
|
||||
) : (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user