Skip to content

Commit 9ca95c9

Browse files
committed
Replace @apollo/react-hooks with @apollo-client (again)
1 parent d00912b commit 9ca95c9

File tree

4 files changed

+35
-39
lines changed

4 files changed

+35
-39
lines changed

package-lock.json

Lines changed: 32 additions & 36 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
@@ -4,7 +4,7 @@
44
"node": "16.x"
55
},
66
"dependencies": {
7-
"@apollo/react-hooks": "^4.0.0",
7+
"@apollo/client": "^3.7.15",
88
"@fortawesome/fontawesome-free": "^6.2.1",
99
"@fortawesome/fontawesome-svg-core": "^6.2.1",
1010
"@fortawesome/free-brands-svg-icons": "^6.2.1",

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)