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-06-16 20:23:06 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c74e006297714fd9dd82b6c7d7683645243ae57
0c74e006
1 parent
1f7abe18
update CategoryPresenter
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
front/src/Routes/Category/CategoryPresenter.js
front/src/Routes/Category/CategoryPresenter.js
View file @
0c74e00
import
React
from
"react"
;
import
React
,
{
useEffect
}
from
"react"
;
import
styled
from
"styled-components"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
...
...
@@ -62,9 +62,10 @@ const StyledLink = styled(Link)`
}
`
;
export
default
({
location
,
categories
})
=>
{
export
default
({
location
,
categories
,
subscribeToNewCategory
})
=>
{
const
{
pathname
}
=
location
;
let
path
;
useEffect
(()
=>
subscribeToNewCategory
(),
[]);
return
(
<>
<
CategoryContainer
>
...
...
Please
register
or
login
to post a comment