Skip to content

Commit

Permalink
Disable launch button dropdown again (since it isn't done yet lol)
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Nov 13, 2023
1 parent 72fbf68 commit 44a711f
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/components/Launch/LaunchButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -20,13 +20,13 @@ export function LaunchButton(props: LaunchButtonProps) {
<UpdateIcon /> Update {playName}
</>;

return <DropdownButton
return <Button
style={props.style}
color={ButtonColor.GREEN}
onClick={() => version.download()}>

{buttonChildren}
</DropdownButton>;
</Button>;
}

if (version.state === YARGStates.DOWNLOADING) {
Expand All @@ -49,26 +49,25 @@ export function LaunchButton(props: LaunchButtonProps) {
Play {playName}
</>;

const dropdownChildren = <>
<DropdownItem>
Open Folder
</DropdownItem>
<DropdownItem>
Clear Caches
</DropdownItem>
<DropdownItem>
Uninstall
</DropdownItem>
</>;
// const dropdownChildren = <>
// <DropdownItem>
// Open Folder
// </DropdownItem>
// <DropdownItem>
// Clear Caches
// </DropdownItem>
// <DropdownItem>
// Uninstall
// </DropdownItem>
// </>;

return <DropdownButton
return <Button
style={props.style}
color={ButtonColor.BLUE}
onClick={() => version.play()}
dropdownChildren={dropdownChildren}>
onClick={() => version.play()}>

{buttonChildren}
</DropdownButton>;
</Button>;
}

if (version.state === YARGStates.PLAYING) {
Expand Down

0 comments on commit 44a711f

Please sign in to comment.