Skip to content

Commit

Permalink
Use React Toolkit imports (almost) everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro committed May 29, 2024
1 parent 13698e1 commit b7bac1a
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/components/AccountPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import ChangePasswordForm from "./ChangePasswordForm";
import { RootState } from "../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/BookCoverEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import editorAdapter from "../editorAdapter";
import DataFetcher from "@thepalaceproject/web-opds-client/lib/DataFetcher";
Expand Down
2 changes: 1 addition & 1 deletion src/components/BookDetailsContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";

import BookDetailsTabContainer from "./BookDetailsTabContainer";
Expand Down
2 changes: 1 addition & 1 deletion src/components/BookDetailsEditor.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import DataFetcher from "@thepalaceproject/web-opds-client/lib/DataFetcher";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChangePasswordForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { FetchErrorData } from "@thepalaceproject/web-opds-client/lib/interfaces";
import { RootState } from "../store";
import { connect } from "react-redux";
Expand Down
2 changes: 1 addition & 1 deletion src/components/CirculationEvents.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import ActionCreator from "../actions";
import ErrorMessage from "./ErrorMessage";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Classifications.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import editorAdapter from "../editorAdapter";
import DataFetcher from "@thepalaceproject/web-opds-client/lib/DataFetcher";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Complaints.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import DataFetcher from "@thepalaceproject/web-opds-client/lib/DataFetcher";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ConfigPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import Header from "./Header";
import Footer from "./Footer";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import buildStore, { RootState } from "../store";
import { FeatureFlags, PathFor } from "../interfaces";
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomListPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import Header from "./Header";
import Footer from "./Footer";
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomLists.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react/no-deprecated */
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import * as PropTypes from "prop-types";
import { RootState } from "../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/CustomListsForBook.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import DataFetcher from "@thepalaceproject/web-opds-client/lib/DataFetcher";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DashboardPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { RootState } from "../store";
import * as PropTypes from "prop-types";
import Header from "./Header";
Expand Down
2 changes: 1 addition & 1 deletion src/components/DiagnosticsTabContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import ActionCreator from "../actions";
import { DiagnosticsData } from "../interfaces";
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditableConfigList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { FetchErrorData } from "@thepalaceproject/web-opds-client/lib/interfaces";
import { SettingData } from "../interfaces";
import { Alert } from "react-bootstrap";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
import * as React from "react";
import { connect } from "react-redux";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import { RootState } from "../store";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/LanePage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import Header from "./Header";
import Footer from "./Footer";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Lanes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable react/no-deprecated */
import * as React from "react";
import { Link } from "react-router";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import { RootState } from "../store";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ManagePatrons.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import * as PropTypes from "prop-types";
import { RootState } from "../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ManagePatronsForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import { RootState } from "../store";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ManagePatronsTabContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import * as PropTypes from "prop-types";
import { RootState } from "../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/QuicksightDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
LibrariesData,
LibraryData,
} from "../interfaces";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { RootState } from "../store";
import { connect } from "react-redux";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/QuicksightDashboardPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { RootState } from "../store";
import * as PropTypes from "prop-types";
import Header from "./Header";
Expand Down
2 changes: 1 addition & 1 deletion src/components/ResetAdobeId.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import { RootState } from "../store";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelfTests.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react/no-deprecated */
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import { RootState } from "../store";
import ActionCreator from "../actions";
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelfTestsCategory.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { RootState } from "../store";
import SelfTests from "./SelfTests";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelfTestsTabContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-interface */
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import { connect } from "react-redux";
import ActionCreator from "../actions";
import { CollectionsData, PatronAuthServicesData } from "../interfaces";
Expand Down
2 changes: 1 addition & 1 deletion src/components/SetupPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import IndividualAdmins from "./IndividualAdmins";
import { RootState } from "../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/TabContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import { Navigate, PathFor } from "../interfaces";
import { RootState } from "../store";
Expand Down
2 changes: 1 addition & 1 deletion src/components/TroubleshootingCategoryPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import { RootState } from "../store";
import DiagnosticsTabContainer from "./DiagnosticsTabContainer";
Expand Down
2 changes: 1 addition & 1 deletion src/components/TroubleshootingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import Header from "./Header";
import Footer from "./Footer";
Expand Down
2 changes: 1 addition & 1 deletion src/components/TroubleshootingTabContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from "react";
import { Store } from "redux";
import { Store } from "@reduxjs/toolkit";
import * as PropTypes from "prop-types";
import { State } from "../reducers/index";
import {
Expand Down

0 comments on commit b7bac1a

Please sign in to comment.