From 502cf4478aa4e60364b346eb989708cbeb7918e7 Mon Sep 17 00:00:00 2001 From: t1enne Date: Tue, 3 May 2022 23:55:13 +0200 Subject: [PATCH] reworked slightly main layout --- web/components/chat/ChatContainer.tsx | 4 +- .../ChatTextField/ChatTextField.module.scss | 4 ++ .../chat/ChatTextField/ChatTextField.tsx | 38 +++++++++++++++ web/components/layouts/Main.tsx | 8 +--- web/components/ui/Content/Content.module.scss | 14 ++++++ web/components/ui/Content/Content.tsx | 48 +++++++++++-------- web/components/ui/Footer/Footer.tsx | 2 +- web/components/ui/Sidebar/Sidebar.tsx | 10 +--- web/components/video/player.tsx | 6 ++- web/stories/ChatTextField.stories.tsx | 2 +- 10 files changed, 95 insertions(+), 41 deletions(-) create mode 100644 web/components/chat/ChatTextField/ChatTextField.module.scss create mode 100644 web/components/chat/ChatTextField/ChatTextField.tsx create mode 100644 web/components/ui/Content/Content.module.scss diff --git a/web/components/chat/ChatContainer.tsx b/web/components/chat/ChatContainer.tsx index 0871d3617..f8c37594b 100644 --- a/web/components/chat/ChatContainer.tsx +++ b/web/components/chat/ChatContainer.tsx @@ -17,11 +17,9 @@ export default function ChatContainer(props: Props) { const chatContainerRef = useRef(null); return ( -
+
- { + console.log({ value }); + }, [value]); + + return ( +
+ + setValue(e.target.value)} + size={size} + placeholder="Enter text and hit enter!" + /> + + +
+ ); +} diff --git a/web/components/layouts/Main.tsx b/web/components/layouts/Main.tsx index 4c5d64040..492527e18 100644 --- a/web/components/layouts/Main.tsx +++ b/web/components/layouts/Main.tsx @@ -1,7 +1,7 @@ import { Layout } from 'antd'; import { ServerStatusStore } from '../stores/ServerStatusStore'; import { ClientConfigStore } from '../stores/ClientConfigStore'; -import { Content, Footer, Header, Sidebar } from '../ui'; +import { Content, Header } from '../ui'; function Main() { return ( @@ -9,12 +9,8 @@ function Main() { -
- - -