sdy

update style

......@@ -42,7 +42,7 @@ const RoomContainer = styled.div`
}
`;
const RoomList = styled.ul`
const RoomUL = styled.ul`
width: 100%;
display: flex;
flex-direction: row;
......@@ -91,17 +91,20 @@ const StyledLink = styled(Link)`
}
`;
export default () => {
export default ({ roomArray }) => {
return (
<Router>
<Wrapper>
<RoomContainer>
<RoomList>
<StyledLink to="/:roomname">
<RoomItem>First Room</RoomItem>
<FontAwesomeIcon icon={faArrowRight} />
</StyledLink>
</RoomList>
<RoomUL>
{roomArray &&
roomArray.map((e) => (
<StyledLink to={e.name} key={e.id}>
<RoomItem>{e.name}</RoomItem>
<FontAwesomeIcon icon={faArrowRight} />
</StyledLink>
))}
</RoomUL>
</RoomContainer>
<CreateContainer>
<StyledLink to="/">
......