Add bug report page

This commit is contained in:
1ilit
2023-09-19 15:51:49 +03:00
parent 884bd32515
commit f2b02e5d42
7 changed files with 303 additions and 18 deletions

View File

@@ -976,7 +976,7 @@ export default function ControlPanel(props) {
function: () => {},
},
"Report a bug": {
function: () => {},
function: () => window.open("/bug_report", "_blank"),
},
"Suggest a feature": {
function: () => {},

View 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>
);
}