[FEATURE] Mutable Servers & Edit UI (#8)
Co-authored-by: Dunemask <dunemask@gmail.com> Reviewed-on: https://gitea.dunemask.dev/elysium/minecluster/pulls/8
This commit is contained in:
parent
23efaafe1d
commit
3d73f69678
19 changed files with 291 additions and 35 deletions
|
@ -6,7 +6,8 @@ import Chip from "@mui/material/Chip";
|
|||
const validatePort = (p) => p !== "25565" && p !== "25575" && p.length < 6;
|
||||
|
||||
export default function ExtraPortsOption(props) {
|
||||
const [extraPorts, setExtraPorts] = useState([]);
|
||||
const { extraPorts: initExtraPorts } = props;
|
||||
const [extraPorts, setExtraPorts] = useState(initExtraPorts ?? []);
|
||||
const { onChange } = props;
|
||||
|
||||
function portChange(e, val, optionType, changedValue) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue