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-16 23:17:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5be096633ccd19ad839b79e2445314a85135e7ac
5be09663
1 parent
fc50f3a2
refactoring menu router, components
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
front/src/Components/Home.js
front/src/Routes/Menu/MenuContainer.js
front/src/Components/Home.js
View file @
5be0966
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
Menu
from
"../Routes/Menu/Menu
Present
er"
;
import
Menu
from
"../Routes/Menu/Menu
Contain
er"
;
import
HomeMain
from
"./Home/HomeMain"
;
import
{
Helmet
}
from
"react-helmet"
;
...
...
front/src/Routes/Menu/MenuContainer.js
View file @
5be0966
import
React
from
"react"
;
import
{
useMutation
}
from
"@apollo/react-hooks"
;
import
{
gql
}
from
"apollo-boost"
;
import
MenuPresenter
from
"./MenuPresenter"
;
const
LOG_OUT
=
gql
`
mutation logUserOut {
logUserOut @client
}
`
;
export
default
()
=>
{
const
[
logOut
]
=
useMutation
(
LOG_OUT
);
return
<
MenuPresenter
logOut
=
{
logOut
}
/>
;
};
...
...
Please
register
or
login
to post a comment