From 385346bcbb14a2a7faac0b34b0db2ed8b88b1e80 Mon Sep 17 00:00:00 2001
From: byeoon <47872200+byeoon@users.noreply.github.com>
Date: Wed, 23 Oct 2024 17:44:30 +0000
Subject: [PATCH] fix general tab again
---
src/ui/settings/pages/General.tsx | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/ui/settings/pages/General.tsx b/src/ui/settings/pages/General.tsx
index d7f7676d..0da3b7fa 100644
--- a/src/ui/settings/pages/General.tsx
+++ b/src/ui/settings/pages/General.tsx
@@ -1,4 +1,4 @@
-import { ReactNative as RN, url } from "@metro/common";
+import { ReactNative as RN, clipboard, url } from "@metro/common";
import { DISCORD_SERVER, GITHUB } from "@lib/constants";
import { getDebugInfo, toggleSafeMode } from "@lib/debug";
import { useProxy } from "@lib/storage";
@@ -26,13 +26,17 @@ export default function General() {
}
- onPress={() => showToast(`${debugInfo.vendetta.version}`)}
+ subLabel={`${debugInfo.vendetta.version}`}
+ onPress={() => {
+ clipboard.setString(debugInfo.vendetta.version);
+ showToast("Copied to clipboard.");
+ }
+ }
/>
}
- subLabel={ `${getPlugins} enabled plugins.` }
- onPress={() => showToast(`${debugInfo.vendetta.version}`)}
+ subLabel={ `${getPlugins()} enabled plugins.` }
/>