Skip to content

Commit

Permalink
Merge pull request #1128 from Arnei/update-react-19
Browse files Browse the repository at this point in the history
Update React to major version 19
  • Loading branch information
Arnei authored Feb 26, 2025
2 parents 2915944 + 18a9386 commit 8e5d5c4
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 46 deletions.
65 changes: 32 additions & 33 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"lodash": "^4.17.21",
"moment": "^2.30.1",
"moment-timezone": "^0.5.47",
"react": "^18.3.1",
"react": "^19.0.0",
"react-chartjs-2": "^5.3.0",
"react-datepicker": "^8.0.0",
"react-dom": "^18.3.1",
"react-dom": "^19.0.0",
"react-hotkeys-hook": "^4.6.1",
"react-i18next": "^15.4.0",
"react-icons": "^5.4.0",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@redux-devtools/extension": "^3.3.0",
"@types/lodash": "^4.17.15",
"@types/node": "^22.13.0",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^19.0.0",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@vitejs/plugin-react-swc": "^3.7.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SeriesDetailsModal = ({
}: {
seriesTitle: string
seriesId: string
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();
const dispatch = useAppDispatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const RecordingDetailsModal = ({
modalRef,
}: {
recordingId: string,
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/ConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ConfirmModal = <T,>({
showCautionMessage?: boolean,
deleteNotAllowedMessage?: string,
deleteWithCautionMessage?: string,
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/EditTableViewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const EditTableViewModal = ({
modalRef,
}: {
close: () => void,
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/HotKeyCheatSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Modal, ModalHandle } from "./modals/Modal";
const HotKeyCheatSheet = ({
modalRef,
}: {
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();
const { hotkeys } = useHotkeysContext();
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/NewResourceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const NewResourceModal = ({
}: {
handleClose: () => void,
resource: "events" | "series" | "user" | "group" | "acl" | "themes"
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/RegistrationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Modal, ModalHandle } from "./modals/Modal";
const RegistrationModal = ({
modalRef
}: {
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useRef, useState } from "react";
import React, { JSX, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import {
getPageOffset,
Expand Down
2 changes: 1 addition & 1 deletion src/components/users/partials/modal/GroupDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const GroupDetailsModal = ({
}: {
close: () => void,
groupName: string,
modalRef: React.RefObject<ModalHandle>
modalRef: React.RefObject<ModalHandle | null>
}) => {
const { t } = useTranslation();

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/wizardHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const useSelectionChanges = <T extends RequiredFormProps>(
};

export const useClickOutsideField = (
childRef: React.RefObject<HTMLDivElement>,
childRef: React.RefObject<HTMLDivElement | null>,
isFirstField?: boolean,
) => {
// Indicator if currently edit mode is activated
Expand Down

0 comments on commit 8e5d5c4

Please sign in to comment.