[fix] empty onClick error
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { FolderFocusOne } from "@icon-park/react"
|
||||
import { Card, CardBody, CardHeader, CardIcon } from "../window/Card"
|
||||
import { addToast } from "@heroui/react"
|
||||
|
||||
interface RoundedButtonProps {
|
||||
children?: React.ReactNode
|
||||
@@ -31,12 +32,12 @@ const CommonDir = () => {
|
||||
<CardBody>
|
||||
<div className="flex gap-1.5">
|
||||
<RoundedButton onClick={()=> {alert("hello")}}>Steam安装位置</RoundedButton>
|
||||
<RoundedButton onClick={()=> {}}>CS2游戏目录</RoundedButton>
|
||||
<RoundedButton onClick={()=> {}}>地图文件</RoundedButton>
|
||||
<RoundedButton onClick={()=> {}}>游戏CFG目录</RoundedButton>
|
||||
<RoundedButton onClick={()=> {}}>个人CFG目录</RoundedButton>
|
||||
<RoundedButton onClick={()=> {}}>完美平台录像</RoundedButton>
|
||||
<RoundedButton onClick={()=> {}}>5E平台录像</RoundedButton>
|
||||
<RoundedButton onClick={()=> {addToast({title: "CS2游戏目录"})}}>CS2游戏目录</RoundedButton>
|
||||
<RoundedButton onClick={()=> {addToast({title: "地图文件"})}}>地图文件</RoundedButton>
|
||||
<RoundedButton onClick={()=> {addToast({title: "游戏CFG目录"})}}>游戏CFG目录</RoundedButton>
|
||||
<RoundedButton onClick={()=> {addToast({title: "个人CFG目录"})}}>个人CFG目录</RoundedButton>
|
||||
<RoundedButton onClick={()=> {addToast({title: "完美平台录像"})}}>完美平台录像</RoundedButton>
|
||||
<RoundedButton onClick={()=> {addToast({title: "5E平台录像"})}}>5E平台录像</RoundedButton>
|
||||
</div>
|
||||
</CardBody>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user