sdy

add props and component structure

......@@ -153,7 +153,7 @@ const StyledLink = styled(Link)`
}
`;
export default ({ roomArray, action, setAction }) => {
export default ({ roomArray, action, setAction, onSubmit, roomName }) => {
return (
<Wrapper>
<Header text={"KhuChat"}></Header>
......@@ -181,9 +181,9 @@ export default ({ roomArray, action, setAction }) => {
) : (
<HideWrapper className="hideWrapper">
<FormContainer>
<Form>
<Form onSubmit={onSubmit}>
<FormText>Room Name</FormText>
<Input placeholder="Enter new Room name" />
<Input placeholder="Enter new Room name" {...roomName} />
<Button text="Submit" />
</Form>
</FormContainer>
......