CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 09:20:58 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=8c72255e746fc8087793891af0c4760ead09d0a9e77f33ca7880f4613616c02aa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22Tvpr9vldFBjdhWi1gS6HoBXQnU9WLsiN%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cd48ddad8dc1cc-BLR
function UserList() { const [isDialogOpen, setIsDialogOpen] = useState(false) - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function UserList() {
- const [isDialogOpen, setIsDialogOpen] = useState(false)
- return (
- <>
- <Box sx={{ mb: 2 }}>
- {!isDialogOpen && (
- <Button
- variant="contained"
- color="primary"
- onClick={() => {
- setSelectedUser(null)
- setIsDialogOpen(true)
- }}
- >
- Add User
- </Button>
- )}
- </Box>
- {isDialogOpen && (
- <UserForm
- user={selectedUser}
- onSave={(updatedUser) => {
- handleUserSave(updatedUser)
- // Reset selected user
- setSelectedUser(null)
- // Close the dialog
- setIsDialogOpen(false)
- }}
- onCancel={() => setIsDialogOpen(false)}
- />
- )}
- <Table>
- <TableHead>
- ...
- ...
- function UserForm({
- user,
- onSave,
- onCancel,
- }:
- ...
- const handleSubmit = (e: React.FormEvent) => {
- ...
- return (
- <Paper elevation={8}>
- <Box sx={{ p: 2 }}>
- <Typography variant="h6" component="h2" sx={{ mb: 2 }}>
- {user ? 'Edit User' : 'Add User'}
- </Typography>
- <form onSubmit={handleSubmit}>
- <TextField
- ...
- <Box sx={{ display: 'flex', justifyContent: 'flex-end', gap: 1, mt: 2 }}>
- <Button type="button" onClick={onCancel}>
- Cancel
- </Button>
- <Button type="submit" color="primary" variant="contained">
- Save
- </Button>
- </Box>
- </form>
- </Box>
- </Paper>
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ L
JavaScript | 7 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ R
JavaScript | 8 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 9 sec ago | 0.24 KB
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 12 sec ago | 0.10 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 18 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 1
JavaScript | 18 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ T
JavaScript | 19 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 30 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand