From bef38e84b2845fd6caa6deb9b98afe24a6197829 Mon Sep 17 00:00:00 2001 From: Jonas Haugland Date: Mon, 28 Mar 2022 17:27:53 +0200 Subject: [PATCH] Fixed slider --- src/client/src/createtournament.js | 59 +++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 9 deletions(-) diff --git a/src/client/src/createtournament.js b/src/client/src/createtournament.js index 2331c0c..56fab08 100644 --- a/src/client/src/createtournament.js +++ b/src/client/src/createtournament.js @@ -2,7 +2,7 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; import Appbar from "./components/appbar"; -import { Button, TextField, Stack, InputLabel, Select, Container, Slider, Paper, Box, Grid } from '@mui/material' +import { Button, TextField, Stack, InputLabel, Select, Container, Slider, Paper, Box, Grid, Typography } from '@mui/material' import FileUploadIcon from '@mui/icons-material/FileUpload'; function submitTournament(event) { @@ -80,6 +80,38 @@ function showError(error) { } function TournamentForm(props) { + + const marks = [ + { + value: 1, + label: "2", + }, + { + value: 2, + label: "4", + }, + { + value: 3, + label: "8", + }, + { + value: 4, + label: "16", + }, + { + value: 5, + label: "32", + }, + { + value: 6, + label: "64", + }, + { + value: 7, + label: "128", + }, + ]; + return ( <>
@@ -89,9 +121,9 @@ function TournamentForm(props) { {/* Description: - - - Edit Image: + + + Edit Image: @@ -129,7 +161,7 @@ function TournamentForm(props) { 64 128 */} - @@ -137,9 +169,18 @@ function TournamentForm(props) { - - - + */} + + + + + + + + + + + {/* go brrrr */}

@@ -155,7 +196,7 @@ export default function CreateTournament(props) { return ( <> - +