Skip to content

Commit

Permalink
Replace @apollo/react-hooks with @apollo/client
Browse files Browse the repository at this point in the history
  • Loading branch information
Redande committed Jun 13, 2023
1 parent e411853 commit 563e46b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
10 changes: 1 addition & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ohjelmoinnin-mooc",
"dependencies": {
"@apollo/react-hooks": "^4.0.0",
"@apollo/client": "^3.7.15",
"@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-brands-svg-icons": "^5.11.2",
"@fortawesome/free-regular-svg-icons": "^5.11.2",
Expand Down
2 changes: 1 addition & 1 deletion src/partials/Points/PointsImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import withSimpleErrorBoundary from "../../util/withSimpleErrorBoundary"
import CourseSettings from "../../../course-settings"

import { useQuery } from "@apollo/react-hooks"
import { useQuery } from "@apollo/client"
import { gql } from "apollo-boost"
import { Button } from "@material-ui/core"
import OverallPoints from "./OverallPoints"
Expand Down
2 changes: 1 addition & 1 deletion src/partials/Points/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import PointsImpl from "./PointsImpl"
import ApolloClient from "apollo-boost"
import { ApolloProvider } from "@apollo/react-hooks"
import { ApolloProvider } from "@apollo/client"
import { accessToken } from "../../services/moocfi"

export default class Points extends React.Component {
Expand Down

0 comments on commit 563e46b

Please sign in to comment.