From 266a09fb6e0a953ccee3c56060fcc7ea5f065508 Mon Sep 17 00:00:00 2001 From: Songyi Huang Date: Sat, 12 Dec 2020 19:01:33 -0800 Subject: [PATCH] add example model download link; add refresh button after launch tournament --- src/components/MenuBar.js | 28 ++++++++++++++++++++++++++++ src/view/LeaderBoard.js | 3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/components/MenuBar.js b/src/components/MenuBar.js index 483af6a..c743181 100644 --- a/src/components/MenuBar.js +++ b/src/components/MenuBar.js @@ -21,6 +21,11 @@ import MenuItem from '@material-ui/core/MenuItem'; import InputLabel from '@material-ui/core/InputLabel'; import FormControl from '@material-ui/core/FormControl'; import DialogActions from "@material-ui/core/DialogActions"; +import Card from '@material-ui/core/Card'; +import CardContent from '@material-ui/core/CardContent'; +import Typography from '@material-ui/core/Typography'; +import HelpIcon from '@material-ui/icons/Help'; +import Link from '@material-ui/core/Link'; import {Message, Upload, Loading} from 'element-react'; import {apiUrl} from "../utils/config"; @@ -28,6 +33,19 @@ import {apiUrl} from "../utils/config"; const drawerWidth = 250; const useStyles = makeStyles((theme) => ({ + uploadNoteRoot: { + maxWidth: "400px", + color: "#E6A23C", + backgroundColor: "#fdf6ec", + }, + title: { + color: "#e6a23c", + lineHeight: "24px", + fontSize: 16, + display: "flex", + alignItems: "center", + justifyContent: "flex-start" + }, formControl: { marginTop: theme.spacing(1), marginBottom: theme.spacing(1), @@ -264,6 +282,16 @@ function MenuBar (props) { Upload Model + + + + Note + + + Download the example NFSP model and Rule model of Leduc Hold'em to test and learn about model upload functionality. + + + { .then(res => { setTimeout(() => {setButtonLoading(false)}, 250); Message({ - message: "Successfully launched tournament", + dangerouslyUseHTMLString: true, + message: 'Successfully launched tournament, Click to reload', type: "success", showClose: true });