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-23 06:08:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d0d7297e74cb60209c5afb97b2eae21eac3f01b
0d0d7297
1 parent
90db8fef
update categoryContainer
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
front/src/Routes/Category/CategoryContainer.js
front/src/Routes/Category/CategoryContainer.js
View file @
0d0d729
import
React
from
"react"
;
import
CategoryPresenter
from
"./CategoryPresenter"
;
import
{
withRouter
}
from
"react-router-dom"
;
import
{
useMutation
,
useQuery
}
from
"@apollo/react-hooks"
;
import
{
GET_CATEGORIRES
,
ADD_CATEGORY
,
EDIT_CATEGORY
,
DELETE_CATEGORY
,
}
from
"./CategoryQueries"
;
export
default
withRouter
(({
location
})
=>
{
const
{
data
}
=
useQuery
(
GET_CATEGORIRES
);
const
[
addCategory
]
=
useMutation
(
ADD_CATEGORY
);
const
[
editCategory
]
=
useMutation
(
EDIT_CATEGORY
);
const
[
deleteCategory
]
=
useMutation
(
DELETE_CATEGORY
);
return
<
CategoryPresenter
location
=
{
location
}
/>
;
});
...
...
Please
register
or
login
to post a comment