Add call feed size debug info
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -33,6 +33,7 @@ import {
|
||||
useShowInspector,
|
||||
useOptInAnalytics,
|
||||
canEnableSpatialAudio,
|
||||
useShowCallFeedDebugInfo,
|
||||
} from "./useSetting";
|
||||
import { FieldRow, InputField } from "../input/Input";
|
||||
import { Button } from "../button";
|
||||
@@ -60,6 +61,8 @@ export const SettingsModal = (props: Props) => {
|
||||
|
||||
const [spatialAudio, setSpatialAudio] = useSpatialAudio();
|
||||
const [showInspector, setShowInspector] = useShowInspector();
|
||||
const [showCallFeedDebugInfo, setShowCallFeedDebugInfo] =
|
||||
useShowCallFeedDebugInfo();
|
||||
const [optInAnalytics, setOptInAnalytics] = useOptInAnalytics();
|
||||
const [keyboardShortcuts, setKeyboardShortcuts] = useKeyboardShortcuts();
|
||||
|
||||
@@ -216,6 +219,18 @@ export const SettingsModal = (props: Props) => {
|
||||
}
|
||||
/>
|
||||
</FieldRow>
|
||||
<FieldRow>
|
||||
<InputField
|
||||
id="showCallFeedDebugInfo"
|
||||
name="callFeedDebugInfo"
|
||||
label={t("Show call feed debug info")}
|
||||
type="checkbox"
|
||||
checked={showCallFeedDebugInfo}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
|
||||
setShowCallFeedDebugInfo(e.target.checked)
|
||||
}
|
||||
/>
|
||||
</FieldRow>
|
||||
<FieldRow>
|
||||
<Button onPress={downloadDebugLog}>
|
||||
{t("Download debug logs")}
|
||||
|
||||
@@ -90,3 +90,5 @@ export const useShowInspector = () => useSetting("show-inspector", false);
|
||||
export const useOptInAnalytics = () => useSetting("opt-in-analytics", false);
|
||||
export const useKeyboardShortcuts = () =>
|
||||
useSetting("keyboard-shortcuts", true);
|
||||
export const useShowCallFeedDebugInfo = () =>
|
||||
useSetting("show-call-feed-debug-info", false);
|
||||
|
||||
Reference in New Issue
Block a user