fixed console warning
This commit is contained in:
parent
6fe62e7c0e
commit
85a957c204
@ -29,21 +29,22 @@ const Editor = ({
|
|||||||
"code-block",
|
"code-block",
|
||||||
"link",
|
"link",
|
||||||
"align",
|
"align",
|
||||||
"image"
|
"image",
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="editor-wrapper">
|
<div className="editor-wrapper">
|
||||||
<div id="custom-toolbar" className="ql-toolbar ql-snow custom-toolbar">
|
<div id="custom-toolbar" className="ql-toolbar ql-snow custom-toolbar">
|
||||||
<div className="d-flex justify-content-between align-items-center w-100">
|
<div className="d-flex justify-content-between align-items-center w-100">
|
||||||
{/* 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
|
||||||
@ -72,21 +71,24 @@ const Editor = ({
|
|||||||
theme="snow"
|
theme="snow"
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
/>
|
/>
|
||||||
{/* 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
|
||||||
Cancel
|
className="btn btn-xs btn-secondary"
|
||||||
</span>
|
aria-disabled={loading}
|
||||||
<span
|
onClick={onCancel}
|
||||||
type="submit"
|
>
|
||||||
className="btn btn-xs btn-primary"
|
Cancel
|
||||||
onClick={onSubmit}
|
</span>
|
||||||
aria-disabled={loading}
|
<span
|
||||||
>
|
type="submit"
|
||||||
{loading ? "Please Wait..." : "Submit"}
|
className="btn btn-xs btn-primary"
|
||||||
</span>
|
onClick={onSubmit}
|
||||||
</div>
|
aria-disabled={loading}
|
||||||
|
>
|
||||||
|
{loading ? "Please Wait..." : "Submit"}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user