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-21 03:51:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a0851a109df58449bd307418501b34ba474a3c9
8a0851a1
1 parent
b234d318
update style
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
front/src/Components/RoomList.js
front/src/Components/RoomList.js
View file @
8a0851a
...
...
@@ -42,7 +42,7 @@ const RoomContainer = styled.div`
}
`
;
const
Room
List
=
styled
.
ul
`
const
Room
UL
=
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
=
"/"
>
...
...
Please
register
or
login
to post a comment