Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Sort.jsx 778B

1234567891011121314151617181920212223242526272829303132
  1. import { FormControl, InputLabel, MenuItem, Select } from '@mui/material';
  2. const Sort = ({ sort, handleSortChange }) => {
  3. return (
  4. <>
  5. <FormControl
  6. sx={{
  7. width: '200px',
  8. mb: { xs: '10px', sm: '0px' },
  9. mr: { sm: '10px' },
  10. }}
  11. >
  12. <InputLabel id="sort-label">Sort</InputLabel>
  13. <Select
  14. MenuProps={{
  15. disableScrollLock: true,
  16. }}
  17. label="Sort"
  18. labelId="sort-label"
  19. id="sort-select-helper"
  20. value={sort}
  21. onChange={handleSortChange}
  22. >
  23. <MenuItem value="asc">Name - A-Z</MenuItem>
  24. <MenuItem value="desc">Name - Z-A</MenuItem>
  25. </Select>
  26. </FormControl>
  27. </>
  28. );
  29. };
  30. export default Sort;