Files
SSA-Admin-Panel/src/Pages/ManageUsers/RegisterUsers/AddRegisterUsers.tsx

114 lines
3.3 KiB
TypeScript
Raw Normal View History

2025-02-06 15:07:42 +05:30
import { Field, Input, Stack } from "@chakra-ui/react";
import {
DialogActionTrigger,
DialogBody,
DialogCloseTrigger,
DialogContent,
DialogFooter,
DialogHeader,
DialogRoot,
DialogTitle,
DialogTrigger,
} from "../../../components/ui/dialog";
import { Button } from "../../../components/ui/button";
import { IoMdAdd } from "react-icons/io";
2025-09-09 17:30:26 +05:30
// import { useCreateUserMutation } from "../../../Redux/Service/manage.user";
// import { useState } from "react";
2025-02-06 15:07:42 +05:30
function AddRegisterUsers() {
2025-09-09 17:30:26 +05:30
// const [createUser] = useCreateUserMutation();
// const [user, setUser] = useState({
// first_name: '',
// last_name: '',
// date_of_birth: '',
// gender: '',
// date_of_birth: '',
// principle_language_linkss: [],
// });
2025-02-06 15:07:42 +05:30
return (
<DialogRoot placement="center">
<DialogTrigger asChild>
2025-02-07 16:38:38 +05:30
<Button px={4} size={"xs"} bg={"#02A0A0"}>
2025-02-06 15:07:42 +05:30
<IoMdAdd /> Add
</Button>
</DialogTrigger>
<DialogContent
2025-02-07 16:38:38 +05:30
bg={"#fff"}
w={{ base: '90%', md: '400px' }}
height={'80vh'}
overflow={'scroll'}
overflowX="hidden"
p={3} // Reduced padding
bgSize={'md'}
2025-02-06 15:07:42 +05:30
>
2025-02-07 16:38:38 +05:30
<DialogHeader bg="white" >
<DialogTitle alignSelf="center" color="black" fontSize="14px">
2025-02-06 15:07:42 +05:30
Add User Accounts
</DialogTitle>
</DialogHeader>
<DialogBody bg="white">
2025-02-07 16:38:38 +05:30
<Stack py={3}>
2025-02-06 15:07:42 +05:30
<Field.Root>
2025-02-07 16:38:38 +05:30
<Field.Label color="black" pt={1} fontSize="12px">
2025-02-06 15:07:42 +05:30
First Name
</Field.Label>
<Input
2025-02-07 16:38:38 +05:30
bgColor="#EEEEEE" color="black" border="none" pl={1} fontSize="12px" height="30px"
2025-02-06 15:07:42 +05:30
/>
2025-02-07 16:38:38 +05:30
<Field.Label color="black" pt={1} fontSize="12px">
2025-02-06 15:07:42 +05:30
Last Name
</Field.Label>
<Input
2025-02-07 16:38:38 +05:30
bgColor="#EEEEEE" color="black" border="none" pl={1} fontSize="12px" height="30px"
2025-02-06 15:07:42 +05:30
/>
2025-02-07 16:38:38 +05:30
<Field.Label color="black" pt={1} fontSize="12px">
2025-02-06 15:07:42 +05:30
Gender
</Field.Label>
<Input
2025-02-07 16:38:38 +05:30
bgColor="#EEEEEE" color="black" border="none" pl={1} fontSize="12px" height="30px"
2025-02-06 15:07:42 +05:30
/>
2025-02-07 16:38:38 +05:30
<Field.Label color="black" pt={1} fontSize="12px">
2025-02-06 15:07:42 +05:30
DOB
</Field.Label>
<Input
2025-09-09 17:30:26 +05:30
bgColor="#EEEEEE" color="black" border="none" pl={1} fontSize="12px" height="30px" type="date"
2025-02-06 15:07:42 +05:30
/>
2025-02-07 16:38:38 +05:30
<Field.Label color="black" pt={1} fontSize="12px">
2025-02-06 15:07:42 +05:30
OTP Verified
</Field.Label>
<Input
2025-02-07 16:38:38 +05:30
bgColor="#EEEEEE" color="black" border="none" pl={1} fontSize="12px" height="30px"
2025-02-06 15:07:42 +05:30
/>
2025-02-07 16:38:38 +05:30
<Field.Label color="black" pt={1} fontSize="12px">
2025-02-06 15:07:42 +05:30
Language
</Field.Label>
<Input
2025-02-07 16:38:38 +05:30
bgColor="#EEEEEE" color="black" border="none" pl={1} fontSize="12px" height="30px"
2025-02-06 15:07:42 +05:30
/>
</Field.Root>
</Stack>
</DialogBody>
2025-02-07 16:38:38 +05:30
<DialogFooter mt={2}>
2025-02-06 15:07:42 +05:30
<DialogActionTrigger asChild>
2025-02-07 16:38:38 +05:30
<Button w="100%" bg="#02A0A0" color={"#fff"}>
2025-02-06 15:07:42 +05:30
Save
</Button>
</DialogActionTrigger>
</DialogFooter>
<DialogCloseTrigger color="black" />
</DialogContent>
</DialogRoot>
);
}
export default AddRegisterUsers;