From d0439e56d374d507b278d8b539ca185c0c0606a2 Mon Sep 17 00:00:00 2001 From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Mon, 15 Jan 2024 01:02:08 +0800 Subject: [PATCH] ui: general to show info --- src/core/ui/screens/General.tsx | 44 +++++++++++---------------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/src/core/ui/screens/General.tsx b/src/core/ui/screens/General.tsx index 99fec46..ee8bec3 100644 --- a/src/core/ui/screens/General.tsx +++ b/src/core/ui/screens/General.tsx @@ -1,46 +1,30 @@ import { settings as settingsDef } from "@index"; import { Tables } from "@metro/common"; -import { resolveAssets } from "@utils/assets"; const { ScrollView } = ReactNative; -const { Stack, TableRow, TableSwitchRow, TableRowGroup } = Tables; +const { Stack, TableRow, TableRowGroup } = Tables; -const icons = resolveAssets({ - StaffBadge: "ic_badge_staff", - Gift: "ic_gift_24px", - Idle: "StatusIdle" -}); +import commitHash from "~commit-hash"; + +const ClientInfo = nativeModuleProxy.RTNClientInfoManager; export default function General() { const settings = settingsDef.useStorage(); return ( - - - - } - value={settings.experiments} - onValueChange={(v: boolean) => settings.experiments = v} - /> - } - value={settings.hideGiftButton} - onValueChange={(v: boolean) => settings.hideGiftButton = v} + + + + } /> - } - value={settings.hideIdling} - onValueChange={(v: boolean) => settings.hideIdling = v} + } /> - + ); }