Skip to content

Commit 92c0eff

Browse files
chore: add missing use client
1 parent aecb007 commit 92c0eff

File tree

7 files changed

+22
-11
lines changed

7 files changed

+22
-11
lines changed

src/app/console/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use client'
1+
"use client"
22

33
import { useEffect, useState } from 'react'
44
import { redirect, usePathname, useRouter } from 'next/navigation'

src/app/console/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client"
2+
13
export default function ConsoleDashboard() {
24
return <div className="flex items-center justify-center h-screen text-sm text-muted-foreground">No sheets found</div>
35
}

src/app/console/searchDialog.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
import { Button } from "@/components/ui/button";
2-
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
3-
import { ScrollArea } from "@/components/ui/scroll-area";
4-
import { useEffect, useRef, useState } from "react";
5-
import { PiFile, PiImage, PiMagnifyingGlassBold, PiPaperPlaneTilt, PiRobotFill, PiSpinner, PiUserCircleFill } from "react-icons/pi";
6-
import { sendMessageToSearch } from "./actions";
1+
"use client"
2+
3+
import { Button } from "@/components/ui/button"
4+
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"
5+
import { ScrollArea } from "@/components/ui/scroll-area"
6+
import { useEffect, useRef, useState } from "react"
7+
import { PiFile, PiImage, PiMagnifyingGlassBold, PiPaperPlaneTilt, PiRobotFill, PiSpinner, PiUserCircleFill } from "react-icons/pi"
8+
import { sendMessageToSearch } from "./actions"
79
import ReactMarkdown from "react-markdown"
810
import { produce } from "immer"
9-
import Image from "next/image";
10-
import { stripCodeBlockBackTicks } from "@/lib/utils";
11+
import Image from "next/image"
12+
import { stripCodeBlockBackTicks } from "@/lib/utils"
1113

1214
export default function SearchDialog({ open }: { open: boolean }) {
1315

@@ -151,8 +153,8 @@ export default function SearchDialog({ open }: { open: boolean }) {
151153
<textarea
152154
onKeyDown={(e) => {
153155
if (e.key === "Enter") {
154-
e.preventDefault();
155-
handleSendMessage();
156+
e.preventDefault()
157+
handleSendMessage()
156158
}
157159
}}
158160
disabled={sending}

src/app/console/sheets/[slug]/columnDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"use client"
12
import { Button } from "@/components/ui/button"
23
import { DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"
34
import { useForm } from "react-hook-form"

src/app/console/sheets/[slug]/sourceIndex.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client"
2+
13
import { useEffect, useState } from "react"
24
import { getSourceIndex } from "./actions"
35
import { IndexedSource, Source } from "@prisma/client"

src/app/console/sheets/[slug]/sourcesDialog.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client"
2+
13
import { Button } from "@/components/ui/button"
24
import { DialogFooter, DialogTitle } from "@/components/ui/dialog"
35
import { Input } from "@/components/ui/input"

src/app/console/sourcesDialog.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client"
2+
13
import { Button } from "@/components/ui/button";
24
import { DialogTitle } from "@/components/ui/dialog";
35
import { Input } from "@/components/ui/input";

0 commit comments

Comments
 (0)