feat: chat center

This commit is contained in:
cha0s 2020-07-13 20:40:06 -05:00
parent 3f72ba99fa
commit 39332dabb8
4 changed files with 16 additions and 5 deletions

View File

@ -0,0 +1,11 @@
import './chat--center.scss';
import React from 'react';
export default function ChatCenter() {
return (
<div className="chat__center flexed" />
);
}
ChatCenter.propTypes = {};

View File

@ -0,0 +1,3 @@
.chat__center {
flex-grow: 1;
}

View File

@ -2,6 +2,7 @@ import './chat.scss';
import React from 'react';
import ChatCenter from './chat--center';
import ChatLeft from './chat--left';
import ChatRight from './chat--right';
@ -9,7 +10,7 @@ export default function Chat() {
return (
<div className="chat">
<ChatLeft />
<div className="chat__messages flexed"></div>
<ChatCenter />
<ChatRight />
</div>
);

View File

@ -9,7 +9,3 @@
width: 4em;
overflow: hidden;
}
.chat__messages {
flex-grow: 1;
}