From cd35d34a24e485d795b7ae520b31015fdd471d76 Mon Sep 17 00:00:00 2001 From: NotII <46204250+NotII@users.noreply.github.com> Date: Mon, 3 Mar 2025 20:38:47 +0000 Subject: [PATCH] fix --- components/dashboard/ChatDetail.tsx | 2 ++ components/dashboard/ChatList.tsx | 2 ++ components/dashboard/ChatNotifications.tsx | 2 ++ components/dashboard/NewChatForm.tsx | 2 ++ 4 files changed, 8 insertions(+) diff --git a/components/dashboard/ChatDetail.tsx b/components/dashboard/ChatDetail.tsx index 8fcb60c..6c4f9d7 100644 --- a/components/dashboard/ChatDetail.tsx +++ b/components/dashboard/ChatDetail.tsx @@ -1,3 +1,5 @@ +"use client" + import React, { useState, useEffect, useRef } from "react"; import { useRouter } from "next/navigation"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; diff --git a/components/dashboard/ChatList.tsx b/components/dashboard/ChatList.tsx index fa6687f..dc800b7 100644 --- a/components/dashboard/ChatList.tsx +++ b/components/dashboard/ChatList.tsx @@ -1,3 +1,5 @@ +"use client" + import React, { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; diff --git a/components/dashboard/ChatNotifications.tsx b/components/dashboard/ChatNotifications.tsx index 46a2874..c725bd5 100644 --- a/components/dashboard/ChatNotifications.tsx +++ b/components/dashboard/ChatNotifications.tsx @@ -1,3 +1,5 @@ +"use client" + import React, { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; import { Badge } from "@/components/ui/badge"; diff --git a/components/dashboard/NewChatForm.tsx b/components/dashboard/NewChatForm.tsx index 6d76812..c29e0c1 100644 --- a/components/dashboard/NewChatForm.tsx +++ b/components/dashboard/NewChatForm.tsx @@ -1,3 +1,5 @@ +"use client" + import React, { useState, useEffect } from "react"; import { useRouter } from "next/navigation"; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card";