Add feedback description input
This commit is contained in:
parent
ef8021e1a8
commit
3f60cd0386
1 changed files with 15 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import { useMediaHandler } from "./useMediaHandler";
|
||||||
import { FieldRow, InputField, ErrorMessage } from "../input/Input";
|
import { FieldRow, InputField, ErrorMessage } from "../input/Input";
|
||||||
import { Button } from "../button";
|
import { Button } from "../button";
|
||||||
import { useSubmitRageshake } from "./useSubmitRageshake";
|
import { useSubmitRageshake } from "./useSubmitRageshake";
|
||||||
|
import { Subtitle } from "../typography/Typography";
|
||||||
|
|
||||||
export function SettingsModal({
|
export function SettingsModal({
|
||||||
client,
|
client,
|
||||||
|
|
@ -27,6 +28,8 @@ export function SettingsModal({
|
||||||
setVideoInput,
|
setVideoInput,
|
||||||
} = useMediaHandler(client);
|
} = useMediaHandler(client);
|
||||||
|
|
||||||
|
const [description, setDescription] = useState("");
|
||||||
|
|
||||||
const { submitRageshake, sending, sent, error, downloadDebugLog } =
|
const { submitRageshake, sending, sent, error, downloadDebugLog } =
|
||||||
useSubmitRageshake();
|
useSubmitRageshake();
|
||||||
|
|
||||||
|
|
@ -93,8 +96,19 @@ export function SettingsModal({
|
||||||
onChange={(e) => setShowInspector(e.target.checked)}
|
onChange={(e) => setShowInspector(e.target.checked)}
|
||||||
/>
|
/>
|
||||||
</FieldRow>
|
</FieldRow>
|
||||||
|
<Subtitle>Feedback</Subtitle>
|
||||||
<FieldRow>
|
<FieldRow>
|
||||||
<Button onPress={submitRageshake}>
|
<InputField
|
||||||
|
id="description"
|
||||||
|
name="description"
|
||||||
|
label="Description"
|
||||||
|
type="text"
|
||||||
|
value={description}
|
||||||
|
onChange={(e) => setDescription(e.target.value)}
|
||||||
|
/>
|
||||||
|
</FieldRow>
|
||||||
|
<FieldRow>
|
||||||
|
<Button onPress={() => submitRageshake({ description })}>
|
||||||
{sent
|
{sent
|
||||||
? "Debug Logs Sent"
|
? "Debug Logs Sent"
|
||||||
: sending
|
: sending
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue