Import gql from @apollo/client instead of graphql-tag.
This commit is contained in:
parent
09f6834d30
commit
06212b1798
@ -1,12 +1,6 @@
|
||||
{
|
||||
"extends": ["env"],
|
||||
"rules": {
|
||||
"react/prop-types": "off",
|
||||
"node/no-unpublished-import": [
|
||||
"error",
|
||||
{
|
||||
"allowModules": ["graphql-tag"]
|
||||
}
|
||||
]
|
||||
"react/prop-types": "off"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import { useApolloClient, useMutation } from '@apollo/client';
|
||||
import { gql, useApolloClient, useMutation } from '@apollo/client';
|
||||
import { ButtonSubmit, Code, Fieldset, Textbox } from 'device-agnostic-ui';
|
||||
import gql from 'graphql-tag';
|
||||
import React from 'react';
|
||||
|
||||
const SINGLE_UPLOAD_MUTATION = gql`
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { useApolloClient, useMutation } from '@apollo/client';
|
||||
import gql from 'graphql-tag';
|
||||
import { gql, useApolloClient, useMutation } from '@apollo/client';
|
||||
|
||||
const SINGLE_UPLOAD_MUTATION = gql`
|
||||
mutation singleUpload($file: Upload!) {
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { useApolloClient, useMutation } from '@apollo/client';
|
||||
import gql from 'graphql-tag';
|
||||
import { gql, useApolloClient, useMutation } from '@apollo/client';
|
||||
|
||||
const MULTIPLE_UPLOAD_MUTATION = gql`
|
||||
mutation multipleUpload($files: [Upload!]!) {
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import { useQuery } from '@apollo/client';
|
||||
import { gql, useQuery } from '@apollo/client';
|
||||
import { Scroll, Table } from 'device-agnostic-ui';
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
const UPLOADS_QUERY = gql`
|
||||
query uploads {
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"eslint-plugin-react": "^7.20.6",
|
||||
"eslint-plugin-react-hooks": "^4.1.1",
|
||||
"graphql-tag": "^2.11.0",
|
||||
"prettier": "^2.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user