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";