Skip to content

Commit

Permalink
Pin version of react to 18.2.0
Browse files Browse the repository at this point in the history
Reported issue in auth0/auth0-react#759
  • Loading branch information
tnguyen14 committed Apr 28, 2024
1 parent 6611c79 commit 436ea83
Show file tree
Hide file tree
Showing 32 changed files with 45 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/components/App/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, {
useState,
useContext,
useCallback
} from 'https://esm.sh/react@18';
} from 'https://esm.sh/react@18.2.0';
import { useDispatch, useSelector } from 'https://esm.sh/react-redux@9';
import { useAuth0 } from 'https://esm.sh/@auth0/auth0-react@2';
import { usePageVisibility } from 'https://esm.sh/react-page-visibility@7';
Expand Down
6 changes: 5 additions & 1 deletion src/components/Cashflow/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import React, { useMemo, useState, useEffect } from 'https://esm.sh/react@18';
import React, {
useMemo,
useState,
useEffect
} from 'https://esm.sh/[email protected]';
import { useSelector } from 'https://esm.sh/react-redux@9';
import Table from 'https://esm.sh/react-bootstrap@2/Table';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Chart/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';

function Chart(props) {
const { chartTop, chartBody, xLabels, maxAmount, intervalAmount } = props;
Expand Down
2 changes: 1 addition & 1 deletion src/components/DeleteDialog/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback } from 'https://esm.sh/react@18';
import React, { useCallback } from 'https://esm.sh/react@18.2.0';
import { useDispatch, useSelector } from 'https://esm.sh/react-redux@9';
import Dialog from 'https://esm.sh/@mui/[email protected]/Dialog';
import DialogTitle from 'https://esm.sh/@mui/[email protected]/DialogTitle';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/Field.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import classnames from 'https://esm.sh/classnames@2';
import { InfoIcon } from 'https://esm.sh/@primer/octicons-react@15';
import Button from 'https://esm.sh/react-bootstrap@2/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/Span.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';

function Span() {
Expand Down
6 changes: 5 additions & 1 deletion src/components/Form/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import React, { useEffect, useRef, useCallback } from 'https://esm.sh/react@18';
import React, {
useEffect,
useRef,
useCallback
} from 'https://esm.sh/[email protected]';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import Button from 'https://esm.sh/react-bootstrap@2/Button';
import { ZapIcon } from 'https://esm.sh/@primer/octicons-react@15';
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/Budget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, {
useContext,
useEffect,
useState
} from 'https://esm.sh/react@18';
} from 'https://esm.sh/react@18.2.0';
import Spinner from 'https://esm.sh/react-bootstrap@2/Spinner';
import Pagination from 'https://esm.sh/react-bootstrap@2/Pagination';
import toml from 'https://esm.sh/@ltd/j-toml@1';
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/BudgetItem.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { usd } from 'https://esm.sh/@tridnguyen/money@1';
import { NoteIcon } from 'https://esm.sh/@primer/octicons-react@15';
import Popover from 'https://esm.sh/@mui/[email protected]/Popover';
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/CashflowBar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';
import Popover from 'https://esm.sh/@mui/[email protected]/Popover';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/CashflowChart.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'https://esm.sh/react@18';
import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import { format } from 'https://esm.sh/date-fns@2';
import Button from 'https://esm.sh/react-bootstrap@2/Button';
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/CategoriesChart.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https:///esm.sh/react@18';
import React from 'https:///esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import Button from 'https://esm.sh/react-bootstrap@2/Button';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/CategoryBar.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import Popover from 'https://esm.sh/@mui/[email protected]/Popover';
import {
usePopupState,
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/WeeklyAverages.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useMemo, useCallback } from 'https://esm.sh/react@18';
import React, { useMemo, useCallback } from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import produce from 'https://esm.sh/immer@9';
import Popover from 'https://esm.sh/@mui/[email protected]/Popover';
Expand Down
2 changes: 1 addition & 1 deletion src/components/GlobalStats/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'https://esm.sh/react@18';
import React, { useState } from 'https://esm.sh/react@18.2.0';
import { useDispatch } from 'https://esm.sh/react-redux@9';
import Tabs from 'https://esm.sh/@mui/[email protected]/Tabs';
import Tab from 'https://esm.sh/@mui/[email protected]/Tab';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/UserMenu.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'https://esm.sh/react@18';
import React, { useState } from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import classnames from 'https://esm.sh/classnames@2';
import { useAuth0 } from 'https://esm.sh/@auth0/auth0-react@2';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import { useAuth0 } from 'https://esm.sh/@auth0/auth0-react@2';
import { setDisplayFrom } from '../../slices/app.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Login/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useAuth0 } from 'https://esm.sh/@auth0/auth0-react@2';
import Button from 'https://esm.sh/react-bootstrap@2/Button';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Notification/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'https://esm.sh/react@18';
import React, { useState, useEffect } from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';
import Snackbar from 'https://esm.sh/@mui/[email protected]/Snackbar';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/CompactTransaction.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';
import { ClockIcon } from 'https://esm.sh/@primer/octicons-react@15';
import { format } from 'https://esm.sh/date-fns@2';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/SearchResult.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';
import { getSearchResult } from '../../selectors/transactions.js';
import { DISPLAY_DATE_WITH_DAY_FORMAT } from '../../util/constants.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/Transaction.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import { format } from 'https://esm.sh/date-fns@2';
import { utcToZonedTime } from 'https://esm.sh/date-fns-tz@1/esm';
Expand Down
6 changes: 5 additions & 1 deletion src/components/Transactions/Week.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import React, { useEffect, useCallback } from 'https://esm.sh/react@18';
import React, {
useEffect,
useCallback,
useState
} from 'https://esm.sh/[email protected]';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import { loadTransactions } from '../../slices/transactions.js';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/WeekCategory.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { usd } from 'https://esm.sh/@tridnguyen/money@1';
import CompactTransaction from './CompactTransaction.js';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/WeekStats.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';
import { usd } from 'https://esm.sh/@tridnguyen/money@1';
import WeekCategory from './WeekCategory.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Transactions/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector } from 'https://esm.sh/react-redux@9';
import Spinner from 'https://esm.sh/react-bootstrap@2/Spinner';
import Week from './Week.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserSettings/Recurring.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'https://esm.sh/react@18';
import React from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import Button from 'https://esm.sh/react-bootstrap@2/Button';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserSettings/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useCallback } from 'https://esm.sh/react@18';
import React, { useState, useCallback } from 'https://esm.sh/react@18.2.0';
import { useSelector, useDispatch } from 'https://esm.sh/react-redux@9';
import Dialog from 'https://esm.sh/@mui/[email protected]/Dialog';
import DialogTitle from 'https://esm.sh/@mui/[email protected]/DialogTitle';
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/budget.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createContext } from 'https://esm.sh/react@18';
import { createContext } from 'https://esm.sh/react@18.2.0';

export default createContext({
versions: [],
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/octokit.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { createContext } from 'https://esm.sh/react@18';
import { createContext } from 'https://esm.sh/react@18.2.0';

export default createContext();
2 changes: 1 addition & 1 deletion src/hooks/useToggle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'https://esm.sh/react@18';
import { useState } from 'https://esm.sh/react@18.2.0';

export default function useToggle(defaultValue = false) {
var [state, setState] = useState(defaultValue);
Expand Down
4 changes: 2 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'https://esm.sh/react@18';
import { render } from 'https://esm.sh/react-dom@18';
import React from 'https://esm.sh/react@18.2.0';
import { render } from 'https://esm.sh/react-dom@18.2.0';
import { Provider } from 'https://esm.sh/react-redux@9';
import { Auth0Provider } from 'https://esm.sh/@auth0/auth0-react@2';
import store from './store.js';
Expand Down

0 comments on commit 436ea83

Please sign in to comment.