From 44a711fc86fcc2d9740030c48747d61bf58d2d18 Mon Sep 17 00:00:00 2001
From: EliteAsian <29520859+EliteAsian123@users.noreply.github.com>
Date: Mon, 13 Nov 2023 13:46:14 -0500
Subject: [PATCH] Disable launch button dropdown again (since it isn't done yet
lol)
---
src/components/Launch/LaunchButton/index.tsx | 35 ++++++++++----------
1 file changed, 17 insertions(+), 18 deletions(-)
diff --git a/src/components/Launch/LaunchButton/index.tsx b/src/components/Launch/LaunchButton/index.tsx
index 3856611..6ecba90 100644
--- a/src/components/Launch/LaunchButton/index.tsx
+++ b/src/components/Launch/LaunchButton/index.tsx
@@ -4,7 +4,7 @@ import { InstallingIcon, UpdateIcon } from "@app/assets/Icons";
import { calculatePayloadPercentage } from "@app/utils/Download/payload";
import PayloadProgress from "../../PayloadProgress";
import Button from "@app/components/Button";
-import { DropdownButton, DropdownItem } from "@app/components/DropdownButton";
+// import { DropdownButton, DropdownItem } from "@app/components/DropdownButton";
interface LaunchButtonProps extends React.PropsWithChildren {
version: YARGVersion,
@@ -20,13 +20,13 @@ export function LaunchButton(props: LaunchButtonProps) {
Update {playName}
>;
- return version.download()}>
{buttonChildren}
- ;
+ ;
}
if (version.state === YARGStates.DOWNLOADING) {
@@ -49,26 +49,25 @@ export function LaunchButton(props: LaunchButtonProps) {
Play {playName}
>;
- const dropdownChildren = <>
-
- Open Folder
-
-
- Clear Caches
-
-
- Uninstall
-
- >;
+ // const dropdownChildren = <>
+ //
+ // Open Folder
+ //
+ //
+ // Clear Caches
+ //
+ //
+ // Uninstall
+ //
+ // >;
- return version.play()}
- dropdownChildren={dropdownChildren}>
+ onClick={() => version.play()}>
{buttonChildren}
- ;
+ ;
}
if (version.state === YARGStates.PLAYING) {