From 53fd0498bae9dbcdb842e7ed74852da248664906 Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Thu, 24 Oct 2024 13:15:46 +0000 Subject: [PATCH] second splash fix --- src/lib/security.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/lib/security.ts b/src/lib/security.ts index 8fd7da47..023dbd65 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -2,12 +2,12 @@ import AssetBrowser from "@/ui/settings/pages/AssetBrowser"; import Developer from "@/ui/settings/pages/Developer"; import { ReactNative as RN, NavigationNative } from "@metro/common"; import { findByProps } from "./metro/filters"; +import { Tabs } from "@/ui/components"; const { hideActionSheet } = findByProps("openLazy", "hideActionSheet"); - +const { Stack, TableRow, TableRowIcon, TableSwitchRow, TableRowGroup }= Tabs; export function initSplash() { const { showSimpleActionSheet } = findByProps("showSimpleActionSheet"); console.log("Loading Opti Security"); - window.alert("This is a test."); if(window.vendetta.settings.developerSettings) { showSimpleActionSheet({ key: "OptiPostload", @@ -16,18 +16,12 @@ export function initSplash() { onClose: () => hideActionSheet(), }, options: [ - // TODO: add logic { label: "Toggle Safe Mode", onPress: (o : any) => { - window.vendetta.settings.safeMode = o; } + window.vendetta.settings.safeMode == o; } }, { label: "Load without Opti",onPress: () =>{ alert("no"); } }, ], }) -} - } - // navigation.push("VendettaCustomPage", { - // title: "Asset Browser", - // render: AssetBrowser, - // }) +}} \ No newline at end of file