Adding chat window.

This commit is contained in:
Patrick Fic
2020-01-25 09:33:17 -08:00
parent 0fb00b97c6
commit 9553062045
5 changed files with 60 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
import React from "react";
export default function ChatWindowComponent() {
return <div>Chat Windows and more</div>;
}

View File

@@ -0,0 +1,18 @@
import React, { useState } from "react";
import ChatWindowComponent from "./chat-window.component";
import { Button } from "antd";
export default function ChatWindowContainer() {
const [visible, setVisible] = useState(false);
return (
<div style={{ position: "absolute", zIndex: 1000 }}>
{visible ? <ChatWindowComponent /> : null}
<Button
onClick={() => {
setVisible(!visible);
}}>
Open!
</Button>
</div>
);
}

View File

@@ -1,5 +1,6 @@
import React from "react";
import { Row, Col } from "antd";
import React, { useState } from "react";
import { Row, Col, Button } from "antd";
import ChatWindowContainer from "../chat-window/chat-window.container";
export default function FooterComponent() {
return (