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-24 19:58:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1bb78ef277855515dce5e581d8c6529e74ae020b
1bb78ef2
1 parent
d42b0475
add props
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
front/src/Routes/Category/CategoryPresenter.js
front/src/Routes/Category/CategoryPresenter.js
View file @
1bb78ef
...
...
@@ -62,7 +62,7 @@ const StyledLink = styled(Link)`
}
`
;
export
default
({
location
})
=>
{
export
default
({
location
,
categories
})
=>
{
const
{
pathname
}
=
location
;
let
path
;
return
(
...
...
@@ -74,11 +74,16 @@ export default ({ location }) => {
<
FontAwesomeIcon
icon
=
{
faArrowDown
}
/> Categor
y
<
FontAwesomeIcon
icon
=
{
faPlus
}
/
>
<
/ItemListTopBox
>
<
StyledLink
>
<
Item
>
<
ItemText
>
#
Music
<
/ItemText
>
<
/Item
>
<
/StyledLink
>
{
categories
&&
categories
.
map
((
e
)
=>
(
path
=
pathname
+
"/:"
+
e
.
name
)(
<
StyledLink
to
=
{
path
}
key
=
{
e
.
id
}
>
<
Item
>
<
ItemText
>
#
{
e
.
name
}
<
/ItemText
>
<
/Item
>
<
/StyledLink
>
)
)}
<
/ItemList
>
<
/ItemListContainer
>
<
/CategoryContainer
>
...
...
Please
register
or
login
to post a comment