diff --git a/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx b/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx index 95965a9..4ad9614 100644 --- a/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx +++ b/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx @@ -9,6 +9,7 @@ import { LuSearch } from "react-icons/lu"; import ViewRegisterUsers from "./ViewRegisterUsers"; import EditRegisterUsers from "./EditRegisterUsers"; import AddRegisterUsers from "./AddRegisterUsers"; +import Delete from "../../../components/ActionIcons/Delete"; const tableHeadRow = [ "Sr. No", @@ -42,7 +43,7 @@ const registerUser: any[] = [ {/* */} } // Pass as function alertText="Delete Users" alertIcon={} alertCaption="Are You Sure You Want To Delete This User ?" diff --git a/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx b/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx index 5f26943..66ab01c 100644 --- a/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx +++ b/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx @@ -9,31 +9,23 @@ import { DialogTitle, DialogTrigger, } from "../../../components/ui/dialog"; +import View from "../../../components/ActionIcons/View"; function ViewRegisterUsers() { return ( - - - + @@ -48,42 +40,72 @@ function ViewRegisterUsers() { First Name Last Name Gender DOB OTP Verified Language diff --git a/src/components/ActionIcons/Delete.tsx b/src/components/ActionIcons/Delete.tsx new file mode 100644 index 0000000..95f1cf5 --- /dev/null +++ b/src/components/ActionIcons/Delete.tsx @@ -0,0 +1,34 @@ +import { Icon, Image } from "@chakra-ui/react"; +import { Tooltip } from "../ui/tooltip"; +import { RiDeleteBin5Line } from "react-icons/ri"; + +const Delete = () => { + return ( + + + + + + ); +}; + +export default Delete; diff --git a/src/components/ActionIcons/Edit.tsx b/src/components/ActionIcons/Edit.tsx index d6d4b09..fde1f52 100644 --- a/src/components/ActionIcons/Edit.tsx +++ b/src/components/ActionIcons/Edit.tsx @@ -1,22 +1,33 @@ -import { Icon } from '@chakra-ui/react' -import { TbEdit } from 'react-icons/tb' -import { Tooltip } from '../ui/tooltip' +import { Icon } from "@chakra-ui/react"; +import { TbEdit } from "react-icons/tb"; +import { Tooltip } from "../ui/tooltip"; const Edit = () => { return ( - - - - - - ) -} + + + + + + ); +}; -export default Edit \ No newline at end of file +export default Edit; diff --git a/src/components/ActionIcons/View.tsx b/src/components/ActionIcons/View.tsx new file mode 100644 index 0000000..c83d22a --- /dev/null +++ b/src/components/ActionIcons/View.tsx @@ -0,0 +1,34 @@ +import { Icon } from "@chakra-ui/react"; +import { Tooltip } from "../ui/tooltip"; +import { MdOutlineRemoveRedEye } from "react-icons/md"; + +const View = () => { + return ( + + + + + + ); +}; + +export default View; diff --git a/src/components/MainFrame.tsx b/src/components/MainFrame.tsx index e486ade..0d86073 100644 --- a/src/components/MainFrame.tsx +++ b/src/components/MainFrame.tsx @@ -22,7 +22,7 @@ const MainFrame: FC = ({ children }) => { rounded="lg" boxShadow={'rgba(99, 99, 99, 0.2) 0px 2px 8px 0px'} pt={3} - > + > {children}