Skip to content

Commit beb044e

Browse files
SaraVieiraDevanB
authored andcommitted
Refactor graphql-tag (#300)
1 parent bd05bb1 commit beb044e

File tree

16 files changed

+14
-16
lines changed

16 files changed

+14
-16
lines changed

advanced/src/components/CreatePage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import { withRouter } from 'react-router-dom'
33
import { graphql } from 'react-apollo'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55

66
class CreatePage extends Component {
77
state = {

advanced/src/components/DetailPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, Fragment } from 'react'
22
import { graphql, compose } from 'react-apollo'
33
import { withRouter } from 'react-router-dom'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55

66
class DetailPage extends Component {
77
render() {

advanced/src/components/DraftsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, Fragment } from 'react'
22
import Post from '../components/Post'
33
import { graphql } from 'react-apollo'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55

66
class DraftsPage extends Component {
77
componentWillReceiveProps(nextProps) {

advanced/src/components/FeedPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, Fragment } from 'react'
22
import Post from '../components/Post'
33
import { graphql } from 'react-apollo'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55

66
class FeedPage extends Component {
77
componentWillReceiveProps(nextProps) {

advanced/src/components/LoginPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import { withRouter } from 'react-router-dom'
33
import { graphql } from 'react-apollo'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55
import { AUTH_TOKEN } from '../constant'
66

77
class LoginPage extends Component {

advanced/src/components/RootContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import LogoutPage from './LogoutPage'
1818
import { AUTH_TOKEN } from '../constant'
1919
import { isTokenExpired } from '../helper/jwtHelper'
2020
import { graphql } from 'react-apollo'
21-
import gql from 'graphql-tag'
21+
import { gql } from 'apollo-boost'
2222

2323
const ProtectedRoute = ({ component: Component, token, ...rest }) => {
2424
return token ? (

advanced/src/components/SignupPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import { withRouter } from 'react-router-dom'
33
import { graphql } from 'react-apollo'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55
import { AUTH_TOKEN } from '../constant'
66

77
class SignupPage extends Component {

basic/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"dependencies": {
88
"apollo-boost": "0.1.4",
99
"graphql": "0.13.2",
10-
"graphql-tag": "2.8.0",
1110
"react": "16.3.1",
1211
"react-apollo": "2.1.3",
1312
"react-dom": "16.3.1",

basic/src/components/CreatePage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import { withRouter } from 'react-router-dom'
33
import { Mutation } from 'react-apollo'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55
import { DRAFTS_QUERY } from './DraftsPage'
66

77
class CreatePage extends Component {

basic/src/components/DetailPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component, Fragment } from 'react'
22
import { Query, Mutation } from 'react-apollo'
33
import { withRouter } from 'react-router-dom'
4-
import gql from 'graphql-tag'
4+
import { gql } from 'apollo-boost'
55
import { DRAFTS_QUERY } from './DraftsPage'
66
import { FEED_QUERY } from './FeedPage'
77

0 commit comments

Comments
 (0)