-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15f8d66
commit 2bb1307
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/components/admin/dashboard-statistics/filters/PhaseDropdown.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import InputLabel from '@mui/material/InputLabel'; | ||
import MenuItem from '@mui/material/MenuItem'; | ||
import FormControl from '@mui/material/FormControl'; | ||
import Select, { SelectChangeEvent } from '@mui/material/Select'; | ||
|
||
export default function PhaseDropdown() { | ||
const [phase, setPhase] = React.useState(''); | ||
|
||
const handleChange = (event: SelectChangeEvent) => { | ||
setPhase(event.target.value as string); | ||
}; | ||
|
||
return ( | ||
<Box sx={{ maxWidth: 120 }}> | ||
<FormControl fullWidth> | ||
<InputLabel id="phase-menu-select">Phase</InputLabel> | ||
<Select | ||
labelId="phase-menu-select" | ||
id="phase-menu" | ||
value={phase} | ||
label="Phase" | ||
onChange={handleChange} | ||
> | ||
<MenuItem value={3}>Toutes les phases</MenuItem> | ||
<MenuItem value={0}>Phase 1</MenuItem> | ||
<MenuItem value={1}>Phase 2</MenuItem> | ||
<MenuItem value={2}>Phase 3</MenuItem> | ||
</Select> | ||
</FormControl> | ||
</Box> | ||
); | ||
} |