sdy

refactoring menu router, components

1 import React from "react"; 1 import React from "react";
2 import styled from "styled-components"; 2 import styled from "styled-components";
3 -import Menu from "../Routes/Menu/MenuPresenter"; 3 +import Menu from "../Routes/Menu/MenuContainer";
4 import HomeMain from "./Home/HomeMain"; 4 import HomeMain from "./Home/HomeMain";
5 import { Helmet } from "react-helmet"; 5 import { Helmet } from "react-helmet";
6 6
......
1 +import React from "react";
2 +import { useMutation } from "@apollo/react-hooks";
3 +import { gql } from "apollo-boost";
4 +import MenuPresenter from "./MenuPresenter";
5 +
6 +const LOG_OUT = gql`
7 + mutation logUserOut {
8 + logUserOut @client
9 + }
10 +`;
11 +
12 +export default () => {
13 + const [logOut] = useMutation(LOG_OUT);
14 +
15 + return <MenuPresenter logOut={logOut} />;
16 +};
......