fixed console warning

This commit is contained in:
Pramod Mahajan 2025-05-29 19:57:24 +05:30 committed by pramod.mahajan
parent 6fe62e7c0e
commit 85a957c204

View File

@ -29,7 +29,7 @@ const Editor = ({
"code-block", "code-block",
"link", "link",
"align", "align",
"image" "image",
]; ];
return ( return (
@ -39,11 +39,12 @@ const Editor = ({
{/* Left: Quill Format Buttons */} {/* Left: Quill Format Buttons */}
<span className="d-flex"> <span className="d-flex">
<span className="ql-formats"> <span className="ql-formats">
<select className="ql-header"> <select className="ql-header" defaultValue="">
<option value="1" /> <option value="1" />
<option value="2" /> <option value="2" />
<option selected /> <option value="" />
</select> </select>
<button className="ql-bold" /> <button className="ql-bold" />
<button className="ql-italic" /> <button className="ql-italic" />
<button className="ql-underline" /> <button className="ql-underline" />
@ -60,8 +61,6 @@ const Editor = ({
<button className="ql-link" /> <button className="ql-link" />
</span> </span>
</span> </span>
</div> </div>
</div> </div>
<ReactQuill <ReactQuill
@ -74,7 +73,11 @@ const Editor = ({
/> />
{/* Right: Submit + Cancel Buttons */} {/* Right: Submit + Cancel Buttons */}
<div className="d-flex justify-content-end gap-2 p-1"> <div className="d-flex justify-content-end gap-2 p-1">
<span className="btn btn-xs btn-secondary" aria-disabled={loading} onClick={onCancel}> <span
className="btn btn-xs btn-secondary"
aria-disabled={loading}
onClick={onCancel}
>
Cancel Cancel
</span> </span>
<span <span
@ -86,7 +89,6 @@ const Editor = ({
{loading ? "Please Wait..." : "Submit"} {loading ? "Please Wait..." : "Submit"}
</span> </span>
</div> </div>
</div> </div>
); );
}; };