Refactor + add message box.

This commit is contained in:
Paul
2021-06-20 20:30:42 +01:00
parent b8fba749af
commit 9e460c5b3d
28 changed files with 225 additions and 120 deletions

View File

@@ -4,6 +4,7 @@ import Header from "../../components/ui/Header";
import { useRenderState } from "../../lib/renderer/Singleton";
import { useChannel, useForceUpdate, useUsers } from "../../context/revoltjs/hooks";
import { MessageArea } from "./messaging/MessageArea";
import MessageBox from "../../components/common/messaging/MessageBox";
const ChannelMain = styled.div`
flex-grow: 1;
@@ -37,6 +38,7 @@ export default function Channel() {
<ChannelMain>
<ChannelContent>
<MessageArea id={id} />
<MessageBox channel={channel} />
</ChannelContent>
</ChannelMain>
</>