From a1507c4c625e399e288c02b9f744f2a6c575e645 Mon Sep 17 00:00:00 2001 From: Zikil Date: Sat, 23 Nov 2024 20:49:21 +0700 Subject: [PATCH] fix for deploy --- components/shared/block-adts.tsx | 4 ++-- components/shared/modals/show-number.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/shared/block-adts.tsx b/components/shared/block-adts.tsx index aa068f3..4c0af76 100644 --- a/components/shared/block-adts.tsx +++ b/components/shared/block-adts.tsx @@ -6,9 +6,9 @@ import ListingCard from '../ListingCard' import { Adt } from '@prisma/client' import toast from 'react-hot-toast' -interface BlockAdtsProps {} +// interface BlockAdtsProps {} -export const BlockAdts: FC = () => { +export const BlockAdts: FC = () => { // Состояния для хранения объявлений и управления их отображением const [adts, setAdts] = useState([]) // Массив объявлений diff --git a/components/shared/modals/show-number.tsx b/components/shared/modals/show-number.tsx index 060bc35..4a15d4f 100644 --- a/components/shared/modals/show-number.tsx +++ b/components/shared/modals/show-number.tsx @@ -4,10 +4,11 @@ import { Dialog, DialogContent } from "@/components/ui/dialog"; import { getUserSession } from "@/lib/get-user-session"; import React from "react"; import { Phone } from "lucide-react"; +import { Session } from "next-auth"; interface Props { phoneNumber: string; - session: any; + session: Session["user"] | null; } export const ShowNumberModal: React.FC = ({ phoneNumber, session }) => {