-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from AkshataKatwal16/admin
Issue feat: PS-1286,PS-1299 sort user list by names, add pagination
- Loading branch information
Showing
7 changed files
with
430 additions
and
155 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
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,48 @@ | ||
import FormControl from "@mui/material/FormControl"; | ||
import InputLabel from "@mui/material/InputLabel"; | ||
import MenuItem from "@mui/material/MenuItem"; | ||
import Select from "@mui/material/Select"; | ||
import React from "react"; | ||
|
||
const PageSizeSelector = ({ handleChange, pageSize}: any) => { | ||
const [open, setOpen] = React.useState(false); | ||
//const [age, setAge] = React.useState<string | number>(""); | ||
|
||
const handleClose = () => { | ||
setOpen(false); | ||
}; | ||
|
||
const handleOpen = () => { | ||
setOpen(true); | ||
}; | ||
|
||
return ( | ||
<> | ||
<> | ||
<FormControl sx={{ m: 1, minWidth: 120 }}> | ||
<InputLabel id="demo-controlled-open-select-label"> | ||
Page Size | ||
</InputLabel> | ||
<Select | ||
labelId="demo-controlled-open-select-label" | ||
id="demo-controlled-open-select" | ||
open={open} | ||
onClose={handleClose} | ||
onOpen={handleOpen} | ||
value={pageSize} | ||
label="Page Size" | ||
onChange={handleChange} | ||
> | ||
<MenuItem value=""> | ||
<em>None</em> | ||
</MenuItem> | ||
<MenuItem value={5}>5</MenuItem> | ||
<MenuItem value={10}>10</MenuItem> | ||
<MenuItem value={15}>15</MenuItem> | ||
</Select> | ||
</FormControl> | ||
</> | ||
</> | ||
); | ||
}; | ||
export default PageSizeSelector; |
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
Oops, something went wrong.