sdy

create ChannelPresenter.js

1 +import React from "react";
2 +import styled from "styled-components";
3 +import Header from "../../Components/Header";
4 +import ChannelList from "../../Components/ChannelList";
5 +
6 +const Wrapper = styled.div`
7 + display: flex;
8 + flex-direction: column;
9 + width: 100%;
10 + justify-content: center;
11 + align-items: center;
12 +`;
13 +
14 +export default ({ location }) => {
15 + return (
16 + <Wrapper>
17 + <Header text={"KhuChat"}></Header>
18 + <ChannelList></ChannelList>
19 + </Wrapper>
20 + );
21 +};