Skip to content

Commit

Permalink
🔥 删除骰子全屏模式
Browse files Browse the repository at this point in the history
  • Loading branch information
neila-a committed Jun 6, 2024
1 parent be85c72 commit 243fa32
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 65 deletions.
2 changes: 0 additions & 2 deletions packages/core/src/app/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@
"shaizi": {
"掷骰子": "掷骰子",
"掷色子的次数": "掷色子的次数",
"全屏": "全屏",
"掷色子(全屏模式)": "掷色子(全屏模式)",
"随机掷色子": "随机掷色子",
"色子图标": "色子图标",
"掷色子": "掷色子"
Expand Down
52 changes: 0 additions & 52 deletions packages/shared/dialog/FullScreen.tsx

This file was deleted.

12 changes: 1 addition & 11 deletions packages/tools/tool-shaizi/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,16 @@ import {
import {
ShaiZiCanvas
} from "./shaiziCanvas";
const FullScreenDialog = dynamic(() => import("@verkfi/shared/dialog/FullScreen"));
function ShaiZi(): JSX.Element {
const [useDialogShow, setUseDialogShow] = useState<boolean>(false),
[cishu, setCishu] = useState<number>(10);
const [cishu, setCishu] = useState<number>(10);
return (
<>
<Stack spacing={2} component="section">
<ShaiZiCanvas cishu={cishu} />
<TextField label={get("shaizi.掷色子的次数")} variant="outlined" value={cishu} type="number" onChange={event => {
setCishu(Number(event.target.value));
}} />
<Button variant="contained" onClick={event => {
setUseDialogShow(true);
}}>
{get("shaizi.全屏")}
</Button>
</Stack>
<FullScreenDialog open={useDialogShow} title={get("shaizi.掷色子(全屏模式)")} onDone={() => {
setUseDialogShow(false);
}} context={<ShaiZiCanvas cishu={cishu} />} />
</>
);
}
Expand Down

0 comments on commit 243fa32

Please sign in to comment.