Added time to inputs

This commit is contained in:
Kristoffer Juelsenn 2022-04-06 20:32:58 +02:00
parent d790ed3df7
commit 30637a158d
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import ErrorSnackbar from "./components/ErrorSnackbar";
import { Button, TextField, Stack, InputLabel, Select, Container, Slider, Paper, Box, Grid, Typography } 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'; import FileUploadIcon from '@mui/icons-material/FileUpload';
import DatePicker from '@mui/lab/DatePicker'; import DateTimePicker from '@mui/lab/DateTimePicker';
import AdapterDateFns from '@mui/lab/AdapterDateFns'; import AdapterDateFns from '@mui/lab/AdapterDateFns';
import LocalizationProvider from '@mui/lab/LocalizationProvider'; import LocalizationProvider from '@mui/lab/LocalizationProvider';
@ -113,7 +113,7 @@ function TournamentForm(props) {
<TextField type="text" multiline={true} id="descriptionInput" label="Description" placeholder="Description" InputLabelProps={{shrink: true}}/> <TextField type="text" multiline={true} id="descriptionInput" label="Description" placeholder="Description" InputLabelProps={{shrink: true}}/>
<Box> <Box>
<LocalizationProvider dateAdapter={AdapterDateFns}> <LocalizationProvider dateAdapter={AdapterDateFns}>
<DatePicker <DateTimePicker
label="Start Time" label="Start Time"
value={value} value={value}
id="startDatePicker" id="startDatePicker"
@ -124,7 +124,7 @@ function TournamentForm(props) {
/> />
</LocalizationProvider> </LocalizationProvider>
<LocalizationProvider dateAdapter={AdapterDateFns}> <LocalizationProvider dateAdapter={AdapterDateFns}>
<DatePicker <DateTimePicker
label="End Time" label="End Time"
value={value} value={value}
id="endDatePicker" id="endDatePicker"