Commit 6425550f authored by Chunchi Che's avatar Chunchi Che

update small

parent b077b9f2
Pipeline #20110 passed with stages
in 3 minutes and 45 seconds
...@@ -12,6 +12,11 @@ import { store } from "../store"; ...@@ -12,6 +12,11 @@ import { store } from "../store";
import { useEffect } from "react"; import { useEffect } from "react";
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { Button, Modal } from "antd"; import { Button, Modal } from "antd";
import {
ScissorOutlined,
SketchOutlined,
TableOutlined,
} from "@ant-design/icons";
const Mora = () => { const Mora = () => {
const dispatch = store.dispatch; const dispatch = store.dispatch;
...@@ -38,12 +43,13 @@ const Mora = () => { ...@@ -38,12 +43,13 @@ const Mora = () => {
return ( return (
<> <>
<Modal open={selectHandAble} footer={<></>}> <Modal title="请选择猜拳" open={selectHandAble} footer={<></>}>
<Button <Button
disabled={!selectHandAble} disabled={!selectHandAble}
onClick={() => { onClick={() => {
handleSelectMora("scissors"); handleSelectMora("scissors");
}} }}
icon={<ScissorOutlined />}
> >
剪刀 剪刀
</Button> </Button>
...@@ -52,6 +58,7 @@ const Mora = () => { ...@@ -52,6 +58,7 @@ const Mora = () => {
onClick={() => { onClick={() => {
handleSelectMora("rock"); handleSelectMora("rock");
}} }}
icon={<SketchOutlined />}
> >
石头 石头
</Button> </Button>
...@@ -60,11 +67,16 @@ const Mora = () => { ...@@ -60,11 +67,16 @@ const Mora = () => {
onClick={() => { onClick={() => {
handleSelectMora("paper"); handleSelectMora("paper");
}} }}
icon={<TableOutlined />}
> >
</Button> </Button>
</Modal> </Modal>
<Modal open={!selectHandAble && selectTpAble} footer={<></>}> <Modal
title="请选择先攻/后攻"
open={!selectHandAble && selectTpAble}
footer={<></>}
>
<Button <Button
disabled={!selectTpAble} disabled={!selectTpAble}
onClick={() => { onClick={() => {
......
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