rep defect 42,questioinnaire defect 67, enf defect 16

This commit is contained in:
2025-01-21 16:04:52 +00:00
parent 89c7525ce9
commit 32a3542f79
5 changed files with 87 additions and 6 deletions
@@ -16,7 +16,16 @@ import {
getFilesFromBlobproxy,
} from "../../../actions";
const ReactQuill = dynamic(() => import("react-quill-new"), { ssr: false });
const LoadingMessage = () => <div>Loading the editor...</div>;
// Dynamically import ReactQuill with a proper loading state
const ReactQuill = dynamic(
() => import("react-quill-new").then((mod) => mod.default),
{
ssr: false,
loading: () => <LoadingMessage />, // This is valid as long as it's a valid React component
}
);
import { useDispatch } from "react-redux"; // Import the useDispatch hook
import {