Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-28 00:13:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
428c47e4b28a11e82b86a96760a0b98d758396fa
428c47e4
1 parent
4d552fde
add props and component structure
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
front/src/Routes/Room/RoomPresenter.js
front/src/Routes/Room/RoomPresenter.js
View file @
428c47e
...
...
@@ -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
>
...
...
Please
register
or
login
to post a comment