diff --git a/external/lang b/external/lang index 09955e9d..e3b83ab1 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 09955e9d30c19c1a180fd3aacdb85961641da2bc +Subproject commit e3b83ab17a6021de7957a3030d5ead6d9eeb38d3 diff --git a/src/pages/settings/panes/Feedback.tsx b/src/pages/settings/panes/Feedback.tsx index f7e2075f..b9850334 100644 --- a/src/pages/settings/panes/Feedback.tsx +++ b/src/pages/settings/panes/Feedback.tsx @@ -1,50 +1,15 @@ import { Github } from "@styled-icons/boxicons-logos"; -import { ListOl } from "@styled-icons/boxicons-regular"; +import { BugAlt, Group, ListOl } from "@styled-icons/boxicons-regular"; +import { Link } from "react-router-dom"; import styles from "./Panes.module.scss"; -import { Localizer, Text } from "preact-i18n"; -import { useState } from "preact/hooks"; +import { Text } from "preact-i18n"; -import { useClient } from "../../../context/revoltjs/RevoltClient"; - -import Button from "../../../components/ui/Button"; -import InputBox from "../../../components/ui/InputBox"; -import Radio from "../../../components/ui/Radio"; -import TextArea from "../../../components/ui/TextArea"; import CategoryButton from "../../../components/ui/fluent/CategoryButton"; export function Feedback() { - const client = useClient(); - const [other, setOther] = useState(""); - const [description, setDescription] = useState(""); - const [state, setState] = useState<"ready" | "sending" | "sent">("ready"); - const [checked, setChecked] = useState< - "Bug" | "Feature Request" | "__other_option__" - >("Bug"); - - async function onSubmit(ev: JSX.TargetedEvent) { - ev.preventDefault(); - setState("sending"); - - await fetch(`https://workers.revolt.chat/feedback`, { - method: "POST", - body: JSON.stringify({ - checked, - other, - description, - name: client.user!.username, - }), - mode: "no-cors", - }); - - setState("sent"); - setChecked("Bug"); - setDescription(""); - setOther(""); - } - return ( -
+
} - description="Suggest new Revolt features on GitHub discussions."> - Submit feature suggestion + description={ + + }> + } - description="To help us more easily triage issues, you can create an issue on GitHub."> - Create a new GitHub issue + description={ + + }> + -

- -

-
- setChecked("Bug")}> + + } + description={ + + }> - - setChecked("__other_option__")}> - - setOther(e.currentTarget.value)} - placeholder={ - ( - - ) as unknown as string - } - /> - - -
-

- -

-