From 3066e3d58d676422a6e35a7fdf5bc9d46435974a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20W=C3=B3jcik?= <1711174+lwojcik@users.noreply.github.com> Date: Wed, 26 May 2021 21:51:52 +0200 Subject: [PATCH] update react-twitch-onauthorized to 3.0.0 (#438) * update react-twitch-onauthorized to 3.0.0 * fixed missing import * update to 3.0.1 --- package-lock.json | 20 ++++---------------- package.json | 2 +- src/pages/Config/Config.tsx | 2 +- src/pages/Viewer/Viewer.tsx | 2 +- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index a0b03064..00032e2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13694,23 +13694,11 @@ "integrity": "sha512-44zsWw2J/4AiZ/eVviygDthcDvCSuVyR/PLVF/g7OIUGq8rnEOwa3A+pHPmHt9WJ5fhHumwTY+Go+RkzEaIHvQ==" }, "react-twitch-ext-onauthorized": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/react-twitch-ext-onauthorized/-/react-twitch-ext-onauthorized-2.0.3.tgz", - "integrity": "sha512-Qx8tUSYxjfEsPawVXr+d8n1C4cVBqM4TmdeT8dMWe6fPNgJVP91uTje+5dAkzsB4d5BI8VdjZXXZ6MpfsT9M2w==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/react-twitch-ext-onauthorized/-/react-twitch-ext-onauthorized-3.0.1.tgz", + "integrity": "sha512-mb+m6ghuRMvYe9xHOsLiOMiOJ8Bce3mKzOcsynXgurxcud8UqRZvh7s7HGwj6+5Pbo9uBl0H3yh+ZwgJwyeXmg==", "requires": { - "react": "^16.13.1" - }, - "dependencies": { - "react": { - "version": "16.14.0", - "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", - "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2" - } - } + "react": "^17.0.2" } }, "read-pkg": { diff --git a/package.json b/package.json index c5a15882..3de9d6e4 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "react-stroller": "1.8.0", "react-tabs": "3.2.2", "react-timeago": "6.1.1", - "react-twitch-ext-onauthorized": "2.0.3", + "react-twitch-ext-onauthorized": "3.0.1", "starcraft2-api": "2.0.0", "swr": "0.5.6", "typeface-lato": "1.1.13", diff --git a/src/pages/Config/Config.tsx b/src/pages/Config/Config.tsx index 2e8c75b5..8550337c 100644 --- a/src/pages/Config/Config.tsx +++ b/src/pages/Config/Config.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import useTwitchAuth from 'react-twitch-ext-onauthorized'; +import { useTwitchAuth } from 'react-twitch-ext-onauthorized'; import useConfigData from 'hooks/useConfigData/useConfigData'; import ConfigFormPanel from 'components/ConfigFormPanel/ConfigFormPanel'; import ConfigConnectionError from 'components/ConfigConnectionError/ConfigConnectionError'; diff --git a/src/pages/Viewer/Viewer.tsx b/src/pages/Viewer/Viewer.tsx index 038d1738..bd8342f4 100644 --- a/src/pages/Viewer/Viewer.tsx +++ b/src/pages/Viewer/Viewer.tsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react'; -import useTwitchAuth from 'react-twitch-ext-onauthorized'; +import { useTwitchAuth } from 'react-twitch-ext-onauthorized'; import useViewerData from 'hooks/useViewerData/useViewerData'; import ViewerPanel from 'components/ViewerPanel/ViewerPanel'; import Unauthorized from 'components/Unauthorized/Unauthorized';