From b621253482361a4fc779cfa00271185c912c6021 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 27 Jan 2025 16:40:05 +0300 Subject: [PATCH] profile: use ui/Card --- apps/web/components/profile/profile-card.tsx | 9 +++++---- packages/ui/src/components/ui/card.tsx | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/web/components/profile/profile-card.tsx b/apps/web/components/profile/profile-card.tsx index 5508818..0d33969 100644 --- a/apps/web/components/profile/profile-card.tsx +++ b/apps/web/components/profile/profile-card.tsx @@ -5,6 +5,7 @@ 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 } from '@repo/ui/components/ui/card'; import { useQuery } from '@tanstack/react-query'; import Link from 'next/link'; @@ -30,7 +31,7 @@ export function ProfileFields({ telegramId }: ProfileProps) { if (!customer) return null; return ( -
+
{telegramId ? false : } {telegramId ? ( @@ -77,7 +78,7 @@ export function ProfileFields({ telegramId }: ProfileProps) { false )}
-
+ ); } @@ -90,7 +91,7 @@ function Person({ telegramId }: ProfileProps) { if (!customer) return null; return ( -
+
@@ -98,7 +99,7 @@ function Person({ telegramId }: ProfileProps) {

{customer?.name}

-
+ ); } diff --git a/packages/ui/src/components/ui/card.tsx b/packages/ui/src/components/ui/card.tsx index e5b0b1b..8bb58a8 100644 --- a/packages/ui/src/components/ui/card.tsx +++ b/packages/ui/src/components/ui/card.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; const Card = React.forwardRef>( ({ className, ...props }, ref) => (