From 28a602e01e9935a55822ca69eaad5fe0c2fdc0ae Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sun, 8 Sep 2024 17:43:54 +0900 Subject: [PATCH] [Update] Config Page: Add Others Tab. Add section Auto Clear Message Box. --- .../setting_box/SettingBox.jsx | 3 ++ .../components/checkbox/Checkbox.jsx | 22 ++++++-------- .../components/checkbox/Checkbox.module.scss | 9 +++++- .../setting_box/others/Others.jsx | 30 +++++++++++++++++++ src-ui/logics/useConfig.js | 19 ++++++++++++ src-ui/logics/useReceiveRoutes.js | 6 ++++ src-ui/store.js | 8 +++++ 7 files changed, 83 insertions(+), 14 deletions(-) create mode 100644 src-ui/app/config_page/setting_section/setting_box/others/Others.jsx 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 (