diff --git a/src-ui/app/App.jsx b/src-ui/app/App.jsx index 03e80cad..03ae751f 100644 --- a/src-ui/app/App.jsx +++ b/src-ui/app/App.jsx @@ -29,6 +29,9 @@ const StartPythonFacadeComponent = () => { // getMicDeviceList, getSelectedMicDevice, getSelectedSpeakerDevice, + + getEnableAutoClearMessageBox, + getSendMessageButtonType, } = useConfig(); @@ -42,6 +45,9 @@ const StartPythonFacadeComponent = () => { // getMicDeviceList(); getSelectedMicDevice(); getSelectedSpeakerDevice(); + + getEnableAutoClearMessageBox(); + getSendMessageButtonType(); }).catch((err) => { console.error(err); }); diff --git a/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx b/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx index a38b4f1e..90669da1 100644 --- a/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/SettingBox.jsx @@ -2,6 +2,7 @@ import { useSelectedConfigTabId } from "@store"; import { Device } from "./device/Device"; import { Appearance } from "./appearance/Appearance"; +import { Others } from "./others/Others"; import { AboutVrct } from "./about_vrct/AboutVrct"; export const SettingBox = () => { @@ -9,6 +10,8 @@ export const SettingBox = () => { switch (currentSelectedConfigTabId) { case "device": return ; + case "others": + return ; // case "appearance": // return ; // case "about_vrct": diff --git a/src-ui/app/config_page/setting_section/setting_box/components/checkbox/Checkbox.jsx b/src-ui/app/config_page/setting_section/setting_box/components/checkbox/Checkbox.jsx index 8a518eb6..c1916fc8 100644 --- a/src-ui/app/config_page/setting_section/setting_box/components/checkbox/Checkbox.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/components/checkbox/Checkbox.jsx @@ -1,22 +1,18 @@ -import React, { useState } from 'react'; import styles from "./Checkbox.module.scss"; export const Checkbox = (props) => { - const [isChecked, setIsChecked] = useState(false); - - const handleCheckboxChange = () => { - setIsChecked(!isChecked); - }; - return (