mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-20 10:14:19 +00:00
Add bug report page
This commit is contained in:
@@ -976,7 +976,7 @@ export default function ControlPanel(props) {
|
||||
function: () => {},
|
||||
},
|
||||
"Report a bug": {
|
||||
function: () => {},
|
||||
function: () => window.open("/bug_report", "_blank"),
|
||||
},
|
||||
"Suggest a feature": {
|
||||
function: () => {},
|
||||
|
19
src/components/rich_editor.jsx
Normal file
19
src/components/rich_editor.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React, { useState } from "react";
|
||||
import { createEditor } from "slate";
|
||||
import { Slate, Editable, withReact } from "slate-react";
|
||||
|
||||
const initialValue = [
|
||||
{
|
||||
type: "paragraph",
|
||||
children: [{ text: "A line of text in a paragraph." }],
|
||||
},
|
||||
];
|
||||
|
||||
export default function RichEditor() {
|
||||
const [editor] = useState(() => withReact(createEditor()));
|
||||
return (
|
||||
<Slate editor={editor} initialValue={initialValue}>
|
||||
<Editable />
|
||||
</Slate>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user