From 53c74d565f77b82c474239497f0736de47f9a8d3 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 15 Jan 2025 18:15:04 +0300 Subject: [PATCH] profile: add button "message to telegram" --- apps/web/components/profile/profile-card.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apps/web/components/profile/profile-card.tsx b/apps/web/components/profile/profile-card.tsx index 26d9de8..a6016fc 100644 --- a/apps/web/components/profile/profile-card.tsx +++ b/apps/web/components/profile/profile-card.tsx @@ -4,8 +4,10 @@ import { getProfile, updateProfile } from '@/actions/profile'; import { CheckboxWithText } from '@/components/profile/checkbox-with-text'; import { ProfileField } from '@/components/profile/profile-field'; import { Avatar, AvatarFallback, AvatarImage } from '@repo/ui/components/ui/avatar'; +import { Button } from '@repo/ui/components/ui/button'; import { Card, CardContent, CardHeader } from '@repo/ui/components/ui/card'; import { useQuery } from '@tanstack/react-query'; +import Link from 'next/link'; type ProfileCardProps = { readonly telegramId?: string; @@ -57,6 +59,19 @@ export function ProfileCard({ telegramId }: ProfileCardProps) { text="Быть мастером" /> )} + {telegramId ? ( + + ) : ( + false + )} );