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:17 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d42b0475c5ca5c974cc7566562af9fc81daba79b
d42b0475
1 parent
78201e81
set useQuery data
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
front/src/Routes/Category/CategoryContainer.js
front/src/Routes/Category/CategoryContainer.js
View file @
d42b047
...
...
@@ -14,5 +14,12 @@ export default withRouter(({ location }) => {
const
[
addCategory
]
=
useMutation
(
ADD_CATEGORY
);
const
[
editCategory
]
=
useMutation
(
EDIT_CATEGORY
);
const
[
deleteCategory
]
=
useMutation
(
DELETE_CATEGORY
);
return
<
CategoryPresenter
location
=
{
location
}
/>
;
let
categories
;
if
(
data
!==
undefined
)
{
const
{
getCategories
}
=
data
;
categories
=
getCategories
;
}
return
<
CategoryPresenter
location
=
{
location
}
categories
=
{
categories
}
/>
;
});
...
...
Please
register
or
login
to post a comment