Skip to content

Commit

Permalink
fix general tab again
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Oct 23, 2024
1 parent d43e93a commit 385346b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/ui/settings/pages/General.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -26,13 +26,17 @@ export default function General() {
<TableRow
label="Opti Version"
icon={<TableRowIcon source={getAssetIDByName("boost")} />}
onPress={() => showToast(`${debugInfo.vendetta.version}`)}
subLabel={`${debugInfo.vendetta.version}`}
onPress={() => {
clipboard.setString(debugInfo.vendetta.version);
showToast("Copied to clipboard.");
}
}
/>
<TableRow
label="Enabled Plugins"
icon={<TableRowIcon source={getAssetIDByName("ic_progress_wrench_24px")} />}
subLabel={ `${getPlugins} enabled plugins.` }
onPress={() => showToast(`${debugInfo.vendetta.version}`)}
subLabel={ `${getPlugins()} enabled plugins.` }
/>
</TableRowGroup>
<TableRowGroup title="Actions">
Expand Down

0 comments on commit 385346b

Please sign in to comment.