Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -153,7 +153,7 @@ const StyledLink = styled(Link)` | ... | @@ -153,7 +153,7 @@ const StyledLink = styled(Link)` |
153 | } | 153 | } |
154 | `; | 154 | `; |
155 | 155 | ||
156 | -export default ({ roomArray, action, setAction }) => { | 156 | +export default ({ roomArray, action, setAction, onSubmit, roomName }) => { |
157 | return ( | 157 | return ( |
158 | <Wrapper> | 158 | <Wrapper> |
159 | <Header text={"KhuChat"}></Header> | 159 | <Header text={"KhuChat"}></Header> |
... | @@ -181,9 +181,9 @@ export default ({ roomArray, action, setAction }) => { | ... | @@ -181,9 +181,9 @@ export default ({ roomArray, action, setAction }) => { |
181 | ) : ( | 181 | ) : ( |
182 | <HideWrapper className="hideWrapper"> | 182 | <HideWrapper className="hideWrapper"> |
183 | <FormContainer> | 183 | <FormContainer> |
184 | - <Form> | 184 | + <Form onSubmit={onSubmit}> |
185 | <FormText>Room Name</FormText> | 185 | <FormText>Room Name</FormText> |
186 | - <Input placeholder="Enter new Room name" /> | 186 | + <Input placeholder="Enter new Room name" {...roomName} /> |
187 | <Button text="Submit" /> | 187 | <Button text="Submit" /> |
188 | </Form> | 188 | </Form> |
189 | </FormContainer> | 189 | </FormContainer> | ... | ... |
-
Please register or login to post a comment