sdy

add useMutation

import React, { useEffect, useState } from "react";
import CategoryPresenter from "./CategoryPresenter";
import { withRouter } from "react-router-dom";
import { useQuery } from "@apollo/react-hooks";
import { useQuery, useMutation } from "@apollo/react-hooks";
import {
GET_CATEGORIRES,
ADD_CATEGORY,
......@@ -16,7 +16,6 @@ export default withRouter(({ location }) => {
error: categoryQueryError,
loading: categoryQueryLoading,
} = useQuery(GET_CATEGORIRES);
const [addCategory] = useMutation(ADD_CATEGORY);
let categories;
if (categoryList !== undefined) {
......