diff --git a/app/globals.css b/app/globals.css
index 94b427c..84bf6f9 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -102,3 +102,7 @@
}
+.ql-container.ql-snow{
+ border: none !important;
+ height: 11em;
+}
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
index cc47d0b..b5718d6 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -7,6 +7,7 @@ import NavbarSm from "@/components/NavbarSm";
import Provider from "../utils/Provider";
import { Toaster as SonnerToaster } from "@/components/ui/sonner";
const inter = Inter({ subsets: ["latin"] });
+import { Suspense } from "react";
export const metadata: Metadata = {
title: "عیون",
@@ -22,6 +23,7 @@ export default function RootLayout({
+ {/* }>{children} */}
{children}
diff --git a/app/loading.js b/app/loading.js
new file mode 100644
index 0000000..ab92209
--- /dev/null
+++ b/app/loading.js
@@ -0,0 +1,19 @@
+"use client";
+import { Triangle } from "react-loader-spinner";
+
+export default function Loading() {
+ // You can add any UI inside Loading, including a Skeleton.
+ return (
+
+
+
+ );
+}
diff --git a/components/AdminWebContents.tsx b/components/AdminWebContents.tsx
index ed7e7ec..78cbf23 100644
--- a/components/AdminWebContents.tsx
+++ b/components/AdminWebContents.tsx
@@ -1,12 +1,236 @@
"use client";
import React, { useState, useRef, useEffect } from "react";
import { useMutation, useQuery } from "@tanstack/react-query";
+import ReactQuill from "react-quill";
+import "react-quill/dist/quill.snow.css";
+import { Button } from "./ui/button";
+import { SubmitWebContents } from "@/utils/adminApi";
+import { toast } from "sonner";
export default function AdminWebContents() {
+ const [contentValueCull, setContentValueCull] = useState("");
+ const [contentValueAbout, setContentValueAbout] = useState("");
+ const [contentValueAfter, setContentValueAfter] = useState("");
+ const [contentValueBefore, setContentValueBefore] = useState("");
+ const [contentTitle, setContentTitle] = useState("");
+ const [contentDesc, setContentDesc] = useState("");
+ // console.log(value);
+ var toolbarOptions = [
+ ["bold", "italic", "underline", "strike"], // toggled buttons
+ ["blockquote", "code-block"],
+
+ [{ header: 1 }, { header: 2 }], // custom button values
+ [{ list: "ordered" }, { list: "bullet" }],
+ [{ script: "sub" }, { script: "super" }], // superscript/subscript
+ [{ indent: "-1" }, { indent: "+1" }], // outdent/indent
+ [{ direction: "rtl" }], // text direction
+
+ [{ size: ["small", false, "large", "huge"] }], // custom dropdown
+ [{ header: [1, 2, 3, 4, 5, 6, false] }],
+
+ [{ color: [] }, { background: [] }], // dropdown with defaults from theme
+ [{ font: [] }],
+ [{ align: [] }],
+
+ ["link", "image", "video"],
+
+ ["clean"], // remove formatting button
+ ];
+
+ const modules = {
+ toolbar: toolbarOptions,
+ // clipboard: {
+ // // toggle to add extra line breaks when pasting HTML:
+ // matchVisual: false,
+ // },
+ };
+ // Define custom styles for the ReactQuill editor
+ const editorStyles: React.CSSProperties = {
+ height: "12em",
+ border: "1px solid #ccc",
+ borderRadius: "5px",
+ direction: "ltr",
+ };
+
+ // Add
+ // ............'Mutation' Change Key Submit
+ const AddWebContents = useMutation({
+ mutationKey: ["AddWebContents"],
+ mutationFn: SubmitWebContents,
+ onSuccess: (res) => {
+ console.log(res);
+ console.log("Success ChangeCat");
+
+ setContentValueCull("");
+ setContentValueAbout("");
+ setContentValueAfter("");
+ setContentValueBefore("");
+
+ toast("عملیات شما با موفقیت انجام شد. ", {
+ className: "!bg-green-500 !text-white",
+ });
+ },
+ onError: (error) => {
+ console.log(error);
+ console.log(error?.message);
+
+ toast(error?.message, {
+ className: "!bg-red-500 !text-black",
+ });
+ },
+ });
+
+ // function onSubmitAdd(data: typeof contentValue) {
+ function onSubmitAddCallUs() {
+ const formData = new FormData();
+ // formData.append("title", contentTitle);
+ // formData.append("description", contentDesc);
+
+ formData.append("title", "Test2");
+ formData.append("description", "Test2....");
+ formData.append("Content", contentValueCull);
+
+ AddWebContents.mutate(formData);
+ console.log(contentValueCull);
+ // console.log(contentTitle);
+ // console.log(contentDesc);
+ }
+
+ // AboutUs
+ function onSubmitAddAboutUs() {
+ const formData = new FormData();
+ formData.append("title", "AboutUs");
+ formData.append("description", "AboutUs....");
+ formData.append("Content", contentValueAbout);
+
+ AddWebContents.mutate(formData);
+ console.log(contentValueAbout);
+ }
+
+ // AboutUs
+ function onSubmitAddَAfterText() {
+ const formData = new FormData();
+ formData.append("title", "AfterRegistration");
+ formData.append("description", "AfterRegistration....");
+ formData.append("Content", contentValueAfter);
+
+ AddWebContents.mutate(formData);
+ console.log(contentValueAfter);
+ }
+
+ // AboutUs
+ function onSubmitAddBeforeText() {
+ const formData = new FormData();
+ formData.append("title", "BeforeRegistration");
+ formData.append("description", "BeforeRegistration....");
+ formData.append("Content", contentValueBefore);
+
+ AddWebContents.mutate(formData);
+ console.log(contentValueBefore);
+ }
+
+
return (
- fsfdsffsdf
+ {/* Cull Us */}
+
+
+ محتوای تماس با ما
+
+
+
+
+
+
+ {/* About Us */}
+
+
+ محتوای درباره ما
+
+
+
+
+
+
+ {/* AfterRegistration */}
+
+
+ محتوای بعد از ثبت گزارش
+
+
+
+
+
+
+ {/* BeforeRegistration*/}
+
+
+ محتوای قبل از ثبت گزارش
+
+
+
+
+
+
);
diff --git a/components/ComplainsDetails.tsx b/components/ComplainsDetails.tsx
index 3b3749e..3a679e0 100644
--- a/components/ComplainsDetails.tsx
+++ b/components/ComplainsDetails.tsx
@@ -268,6 +268,7 @@ export default function ComplainsDetails({
+ {/* 1 */}
@@ -282,6 +283,7 @@ export default function ComplainsDetails({
/>
+{/* 2 */}
{data.user == null ? (
@@ -455,6 +457,7 @@ export default function ComplainsDetails({
+ {/* 3 */}
انجام عملیات
@@ -467,51 +470,14 @@ export default function ComplainsDetails({
key2={key}
/>
- {/* Left */}
- {/*
-
- وضعیت درخواست
-
- {ComplainDetailsItems.map((item, index, array) => {
- return (
-
-
-
- {item.title}
-
-
- {item.desc}
-
-
- {item.date}
{item.time}
-
-
-
-
-
- );
- })}
-
*/}
>
) : (
<>
{getComplaintMutation.isPending && (
+
("");
useEffect(() => {
@@ -21,6 +22,12 @@ export default function NavbarPanel() {
setRole(userRole);
}, []);
+ useEffect(() => {
+ // Set the active link based on the current route
+ setActiveLink(pathname);
+ }, [pathname]);
+
+
const { data, isLoading, refetch } = useQuery({
queryKey: ["Profile"],
queryFn: () => getProfile(),
@@ -101,12 +108,14 @@ export default function NavbarPanel() {
<>
{selectedMenu.map(
(item: { id: number; name: string; href: string }) => {
+ const isActive = activeLink === item.href;
+
return (
{item.name}
diff --git a/components/TabController.tsx b/components/TabController.tsx
index f41c59f..c692ff3 100644
--- a/components/TabController.tsx
+++ b/components/TabController.tsx
@@ -54,7 +54,8 @@ export default function TabController() {
};
const [psblState, setPsblState] = useState(0);
- const [selectedTab, setSelectedTab] = useState("0");
+ const [selectedTab, setSelectedTab] = useState("0");
+
const {
data: dataState,
@@ -65,6 +66,9 @@ export default function TabController() {
queryFn: () => getPossibleStates(),
refetchOnWindowFocus: false,
});
+
+ // const initialSelectedTab = dataState[0]?.value || '';
+ // setSelectedTab(initialSelectedTab);
// console.log(dataState[0]?.title);
@@ -88,7 +92,7 @@ export default function TabController() {
لیست شکایت ها
{
// setPsblState(value);
@@ -106,11 +110,13 @@ export default function TabController() {
{dataState?.map((item: any) => {
+ // const isActive = item.value === selectedTab;
return (
{
setPsblState(item.value);
setSelectedTab(item.value);
diff --git a/package-lock.json b/package-lock.json
index d28fa1f..ade8c13 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -55,6 +55,7 @@
"react-leaflet": "^4.2.1",
"react-loader-spinner": "^6.1.6",
"react-otp-input": "^3.1.1",
+ "react-quill": "^2.0.0",
"react-responsive": "^9.0.2",
"react-secure-storage": "^1.3.2",
"react-spinners": "^0.13.8",
@@ -1591,6 +1592,14 @@
"integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==",
"devOptional": true
},
+ "node_modules/@types/quill": {
+ "version": "1.3.10",
+ "resolved": "https://registry.npmjs.org/@types/quill/-/quill-1.3.10.tgz",
+ "integrity": "sha512-IhW3fPW+bkt9MLNlycw8u8fWb7oO7W5URC9MfZYHBlA24rex9rs23D5DETChu1zvgVdc5ka64ICjJOgQMr6Shw==",
+ "dependencies": {
+ "parchment": "^1.1.2"
+ }
+ },
"node_modules/@types/react": {
"version": "18.2.43",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.43.tgz",
@@ -2163,7 +2172,6 @@
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz",
"integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==",
- "dev": true,
"dependencies": {
"function-bind": "^1.1.2",
"get-intrinsic": "^1.2.1",
@@ -2305,6 +2313,14 @@
"resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
"integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="
},
+ "node_modules/clone": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
+ "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
"node_modules/clsx": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/clsx/-/clsx-2.0.0.tgz",
@@ -2492,6 +2508,25 @@
}
}
},
+ "node_modules/deep-equal": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.2.tgz",
+ "integrity": "sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==",
+ "dependencies": {
+ "is-arguments": "^1.1.1",
+ "is-date-object": "^1.0.5",
+ "is-regex": "^1.1.4",
+ "object-is": "^1.1.5",
+ "object-keys": "^1.1.1",
+ "regexp.prototype.flags": "^1.5.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -2502,7 +2537,6 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz",
"integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==",
- "dev": true,
"dependencies": {
"get-intrinsic": "^1.2.1",
"gopd": "^1.0.1",
@@ -2516,7 +2550,6 @@
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
"integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
- "dev": true,
"dependencies": {
"define-data-property": "^1.0.1",
"has-property-descriptors": "^1.0.0",
@@ -3164,11 +3197,26 @@
"node": ">=0.10.0"
}
},
+ "node_modules/eventemitter3": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz",
+ "integrity": "sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg=="
+ },
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="
+ },
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
},
+ "node_modules/fast-diff": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz",
+ "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig=="
+ },
"node_modules/fast-glob": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
@@ -3414,7 +3462,6 @@
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",
"integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",
- "dev": true,
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -3423,7 +3470,6 @@
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz",
"integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==",
- "dev": true,
"dependencies": {
"function-bind": "^1.1.2",
"has-proto": "^1.0.1",
@@ -3560,7 +3606,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
- "dev": true,
"dependencies": {
"get-intrinsic": "^1.1.3"
},
@@ -3609,7 +3654,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz",
"integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==",
- "dev": true,
"dependencies": {
"get-intrinsic": "^1.2.2"
},
@@ -3621,7 +3665,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
"integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
- "dev": true,
"engines": {
"node": ">= 0.4"
},
@@ -3633,7 +3676,6 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
- "dev": true,
"engines": {
"node": ">= 0.4"
},
@@ -3645,7 +3687,6 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz",
"integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==",
- "dev": true,
"dependencies": {
"has-symbols": "^1.0.2"
},
@@ -3759,6 +3800,21 @@
"loose-envify": "^1.0.0"
}
},
+ "node_modules/is-arguments": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",
+ "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "has-tostringtag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/is-array-buffer": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz",
@@ -3854,7 +3910,6 @@
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz",
"integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==",
- "dev": true,
"dependencies": {
"has-tostringtag": "^1.0.0"
},
@@ -3968,7 +4023,6 @@
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
"integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==",
- "dev": true,
"dependencies": {
"call-bind": "^1.0.2",
"has-tostringtag": "^1.0.0"
@@ -4280,6 +4334,11 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
+ },
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
@@ -7306,11 +7365,25 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/object-is": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz",
+ "integrity": "sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==",
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/object-keys": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
- "dev": true,
"engines": {
"node": ">= 0.4"
}
@@ -7461,6 +7534,11 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/parchment": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz",
+ "integrity": "sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg=="
+ },
"node_modules/parent-module": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
@@ -7735,6 +7813,32 @@
}
]
},
+ "node_modules/quill": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/quill/-/quill-1.3.7.tgz",
+ "integrity": "sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==",
+ "dependencies": {
+ "clone": "^2.1.1",
+ "deep-equal": "^1.0.1",
+ "eventemitter3": "^2.0.3",
+ "extend": "^3.0.2",
+ "parchment": "^1.1.4",
+ "quill-delta": "^3.6.2"
+ }
+ },
+ "node_modules/quill-delta": {
+ "version": "3.6.3",
+ "resolved": "https://registry.npmjs.org/quill-delta/-/quill-delta-3.6.3.tgz",
+ "integrity": "sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==",
+ "dependencies": {
+ "deep-equal": "^1.0.1",
+ "extend": "^3.0.2",
+ "fast-diff": "1.1.2"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
"node_modules/react": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
@@ -7838,6 +7942,20 @@
"react-dom": ">=16.8.6 || ^17.0.0 || ^18.0.0"
}
},
+ "node_modules/react-quill": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/react-quill/-/react-quill-2.0.0.tgz",
+ "integrity": "sha512-4qQtv1FtCfLgoD3PXAur5RyxuUbPXQGOHgTlFie3jtxp43mXDtzCKaOgQ3mLyZfi1PUlyjycfivKelFhy13QUg==",
+ "dependencies": {
+ "@types/quill": "^1.3.10",
+ "lodash": "^4.17.4",
+ "quill": "^1.3.7"
+ },
+ "peerDependencies": {
+ "react": "^16 || ^17 || ^18",
+ "react-dom": "^16 || ^17 || ^18"
+ }
+ },
"node_modules/react-remove-scroll": {
"version": "2.5.5",
"resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
@@ -8031,7 +8149,6 @@
"version": "1.5.1",
"resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz",
"integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==",
- "dev": true,
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.2.0",
@@ -8207,7 +8324,6 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz",
"integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==",
- "dev": true,
"dependencies": {
"define-data-property": "^1.1.1",
"get-intrinsic": "^1.2.1",
@@ -8222,7 +8338,6 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz",
"integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==",
- "dev": true,
"dependencies": {
"define-data-property": "^1.0.1",
"functions-have-names": "^1.2.3",
diff --git a/package.json b/package.json
index be90791..0fe63c5 100644
--- a/package.json
+++ b/package.json
@@ -56,6 +56,7 @@
"react-leaflet": "^4.2.1",
"react-loader-spinner": "^6.1.6",
"react-otp-input": "^3.1.1",
+ "react-quill": "^2.0.0",
"react-responsive": "^9.0.2",
"react-secure-storage": "^1.3.2",
"react-spinners": "^0.13.8",