Skip to content

Commit 563e46b

Browse files
committed
Replace @apollo/react-hooks with @apollo/client
1 parent e411853 commit 563e46b

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

package-lock.json

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ohjelmoinnin-mooc",
33
"dependencies": {
4-
"@apollo/react-hooks": "^4.0.0",
4+
"@apollo/client": "^3.7.15",
55
"@fortawesome/fontawesome-svg-core": "^1.2.25",
66
"@fortawesome/free-brands-svg-icons": "^5.11.2",
77
"@fortawesome/free-regular-svg-icons": "^5.11.2",

src/partials/Points/PointsImpl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react"
22
import withSimpleErrorBoundary from "../../util/withSimpleErrorBoundary"
33
import CourseSettings from "../../../course-settings"
44

5-
import { useQuery } from "@apollo/react-hooks"
5+
import { useQuery } from "@apollo/client"
66
import { gql } from "apollo-boost"
77
import { Button } from "@material-ui/core"
88
import OverallPoints from "./OverallPoints"

src/partials/Points/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react"
22
import PointsImpl from "./PointsImpl"
33
import ApolloClient from "apollo-boost"
4-
import { ApolloProvider } from "@apollo/react-hooks"
4+
import { ApolloProvider } from "@apollo/client"
55
import { accessToken } from "../../services/moocfi"
66

77
export default class Points extends React.Component {

0 commit comments

Comments
 (0)