Commit 42e2a5c7 authored by Chunchi Che's avatar Chunchi Che

handle start click

parent c61bcaba
Pipeline #22941 failed with stages
in 12 minutes and 47 seconds
......@@ -3,6 +3,7 @@ import { CheckCircleFilled } from "@ant-design/icons";
import {
sendHsNotReady,
sendHsReady,
sendHsStart,
sendHsToDuelList,
sendHsToObserver,
sendUpdateDeck,
......@@ -315,7 +316,12 @@ const Controller: React.FC<{ onDeckChange: (deckName: string) => void }> = ({
))}
</Avatar.Group>
</Button>
<Button size="large" icon={<IconFont type="icon-play" size={12} />}>
<Button
size="large"
icon={<IconFont type="icon-play" size={12} />}
disabled={!snapRoom.isHost}
onClick={() => sendHsStart()}
>
开始游戏
</Button>
<Button
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment