diff --git a/app/react/V2/Routes/Settings/CustomUploads/components/uploadProgressAtom.ts b/app/react/V2/Routes/Settings/CustomUploads/components/uploadProgressAtom.ts
index 8e2be0b511..1b8e64ef88 100644
--- a/app/react/V2/Routes/Settings/CustomUploads/components/uploadProgressAtom.ts
+++ b/app/react/V2/Routes/Settings/CustomUploads/components/uploadProgressAtom.ts
@@ -1,8 +1,8 @@
-import { atom } from 'recoil';
+import { atom } from 'jotai';
-const uploadProgressAtom = atom({
- key: 'uploadProgress',
- default: { filename: '', progress: undefined } as { filename?: string; progress?: number },
+const uploadProgressAtom = atom({ filename: '', progress: undefined } as {
+ filename?: string;
+ progress?: number;
});
export { uploadProgressAtom };
diff --git a/app/react/V2/Routes/Settings/Customization/Customization.tsx b/app/react/V2/Routes/Settings/Customization/Customization.tsx
index 08287c50d4..7d816ca927 100644
--- a/app/react/V2/Routes/Settings/Customization/Customization.tsx
+++ b/app/react/V2/Routes/Settings/Customization/Customization.tsx
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react';
import { LoaderFunction, useBlocker, useLoaderData } from 'react-router-dom';
import { IncomingHttpHeaders } from 'http';
-import { useSetRecoilState } from 'recoil';
+import { useSetAtom } from 'jotai';
import { FetchResponseError } from 'shared/JSONRequest';
import { ClientSettings } from 'app/apiResponseTypes';
import { Translate } from 'app/I18N';
@@ -28,7 +28,7 @@ const Customisation = () => {
const [showModal, setShowModal] = useState(false);
const [hasChanges, setHasChanges] = useState(false);
const blocker = useBlocker(hasChanges);
- const setNotifications = useSetRecoilState(notificationAtom);
+ const setNotifications = useSetAtom(notificationAtom);
useEffect(() => {
if (blocker.state === 'blocked') {
diff --git a/app/react/V2/Routes/Settings/IX/IXDashboard.tsx b/app/react/V2/Routes/Settings/IX/IXDashboard.tsx
index 45618458b0..ed5277bb6c 100644
--- a/app/react/V2/Routes/Settings/IX/IXDashboard.tsx
+++ b/app/react/V2/Routes/Settings/IX/IXDashboard.tsx
@@ -3,7 +3,7 @@ import React, { useMemo, useState } from 'react';
import { IncomingHttpHeaders } from 'http';
import { LoaderFunction, useLoaderData, useRevalidator } from 'react-router-dom';
import { Row } from '@tanstack/react-table';
-import { useSetRecoilState } from 'recoil';
+import { useSetAtom } from 'jotai';
import * as extractorsAPI from 'app/V2/api/ix/extractors';
import * as templatesAPI from 'V2/api/templates';
import { SettingsContent } from 'V2/Components/Layouts/SettingsContent';
@@ -61,7 +61,7 @@ const IXDashboard = () => {
const [selected, setSelected] = useState
[]>([]);
const [confirmModal, setConfirmModal] = useState(false);
const [extractorModal, setExtractorModal] = useState(false);
- const setNotifications = useSetRecoilState(notificationAtom);
+ const setNotifications = useSetAtom(notificationAtom);
const formmatedExtractors = useMemo(
() => formatExtractors(extractors, templates),
diff --git a/app/react/V2/Routes/Settings/IX/IXSuggestions.tsx b/app/react/V2/Routes/Settings/IX/IXSuggestions.tsx
index 304732a035..8f27b6f092 100644
--- a/app/react/V2/Routes/Settings/IX/IXSuggestions.tsx
+++ b/app/react/V2/Routes/Settings/IX/IXSuggestions.tsx
@@ -11,7 +11,7 @@ import {
useSearchParams,
} from 'react-router-dom';
import { Row, SortingState } from '@tanstack/react-table';
-import { useSetRecoilState } from 'recoil';
+import { useSetAtom } from 'jotai';
import * as extractorsAPI from 'app/V2/api/ix/extractors';
import * as suggestionsAPI from 'app/V2/api/ix/suggestions';
import * as templatesAPI from 'V2/api/templates';
@@ -72,7 +72,7 @@ const IXSuggestions = () => {
const [selected, setSelected] = useState[]>([]);
const [sorting, setSorting] = useState([]);
const { revalidate } = useRevalidator();
- const setNotifications = useSetRecoilState(notificationAtom);
+ const setNotifications = useSetAtom(notificationAtom);
const [status, setStatus] = useState<{
status: ixStatus;
message?: string;
@@ -231,7 +231,7 @@ const IXSuggestions = () => {
{selected.length ? (
-
) : (
-
+