We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db83d52 commit e177b43Copy full SHA for e177b43
web/app/chat/page.tsx
@@ -8,6 +8,14 @@ import RoomList from "~/components/chat/RoomList";
8
import { RoomWindow } from "~/components/chat/RoomWindow";
9
import FullScreenCircularProgress from "~/components/common/FullScreenCircularProgress";
10
11
+export default function Chat() {
12
+ return (
13
+ <Suspense fallback={<FullScreenCircularProgress />}>
14
+ <ChatListContent />
15
+ </Suspense>
16
+ );
17
+}
18
+
19
function ChatListContent() {
20
const searchParams = useSearchParams();
21
@@ -28,11 +36,3 @@ function ChatListContent() {
28
36
<RoomList roomsData={state.data} />
29
37
);
30
38
}
31
-
32
-export default function Chat() {
33
- return (
34
- <Suspense fallback={<FullScreenCircularProgress />}>
35
- <ChatListContent />
- </Suspense>
- );
-}
0 commit comments