-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from bleu/luiz/op-refactor-message-interface
refactor: change message interface
- Loading branch information
Showing
35 changed files
with
896 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use client"; | ||
|
||
import { ChatHeader } from "@/components/chat/chat-header"; | ||
import ChatSidebar from "@/components/chat/chat-sidebar"; | ||
import type React from "react"; | ||
|
||
export default function ChatLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<div className="flex-1"> | ||
<ChatHeader /> | ||
<div className="flex max-h-[calc(100dvh-4rem)] w-full overflow-hidden h-full"> | ||
<div className="hidden md:flex"> | ||
<ChatSidebar /> | ||
</div> | ||
|
||
<main className="flex flex-1">{children}</main> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"use client"; | ||
|
||
import ChatBottombar from "@/components/chat/chat-bottombar"; | ||
import { ChatList } from "@/components/chat/chat-list"; | ||
import React from "react"; | ||
|
||
export default function Chat() { | ||
|
||
return ( | ||
<div className="flex flex-col-reverse min-w-full"> | ||
<div className="mx-3 md:mx-12"> | ||
<ChatBottombar /> | ||
</div> | ||
<ChatList /> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.