From 42a3efb217aeb55fd36e51791baa13750f1ab4e8 Mon Sep 17 00:00:00 2001 From: Purp1e <47248616+Purple-CSGO@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:09:17 +0800 Subject: [PATCH] [feat] add notice to launch and quit button + using Button --- src/components/cstb/FastLaunch.tsx | 25 ++++++++++++++----------- src/components/cstb/ForceQuit.tsx | 23 +++++++++++++++-------- 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/components/cstb/FastLaunch.tsx b/src/components/cstb/FastLaunch.tsx index fd728aa..0aa7a18 100644 --- a/src/components/cstb/FastLaunch.tsx +++ b/src/components/cstb/FastLaunch.tsx @@ -3,7 +3,8 @@ import { useToolStore } from "@/store/tool" import { TakeOff } from "@icon-park/react" import { invoke } from "@tauri-apps/api/core" import { Card, CardBody, CardHeader, CardIcon } from "../window/Card" -// import { addToast } from "@heroui/react" +import { addToast, Button } from "@heroui/react" +import { title } from "process" const FastLaunch = () => { const steam = useSteamStore() @@ -18,32 +19,34 @@ const FastLaunch = () => {
- - + +
diff --git a/src/components/cstb/ForceQuit.tsx b/src/components/cstb/ForceQuit.tsx index ae3fade..ad927c4 100644 --- a/src/components/cstb/ForceQuit.tsx +++ b/src/components/cstb/ForceQuit.tsx @@ -1,6 +1,7 @@ import { Power } from "@icon-park/react" import { invoke } from "@tauri-apps/api/core" import { Card, CardBody, CardHeader, CardIcon } from "../window/Card" +import { addToast, Button } from "@heroui/react" const ForceQuit = () => { return ( @@ -12,20 +13,26 @@ const ForceQuit = () => {
- - + +