diff --git a/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx b/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx
index 66ab01c..4cce6e5 100644
--- a/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx
+++ b/src/Pages/ManageUsers/RegisterUsers/ViewRegisterUsers.tsx
@@ -1,5 +1,5 @@
-import { MdOutlineRemoveRedEye } from "react-icons/md";
-import { Field, Icon, Input, Stack } from "@chakra-ui/react";
+import { Field, Input, Stack } from "@chakra-ui/react";
+import View from "../../../components/ActionIcons/View";
import {
DialogBody,
DialogCloseTrigger,
@@ -9,7 +9,6 @@ import {
DialogTitle,
DialogTrigger,
} from "../../../components/ui/dialog";
-import View from "../../../components/ActionIcons/View";
function ViewRegisterUsers() {
return (
diff --git a/src/Pages/Profile/ChangePassword.tsx b/src/Pages/Profile/ChangePassword.tsx
index fee0a39..d3a74bf 100644
--- a/src/Pages/Profile/ChangePassword.tsx
+++ b/src/Pages/Profile/ChangePassword.tsx
@@ -1,28 +1,22 @@
-import { DialogBody, DialogCloseTrigger, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "../../components/ui/dialog"
-import { Field, Grid, Heading, Input, Stack, Text } from "@chakra-ui/react"
-import { FaRegEdit } from "react-icons/fa";
+import { Field, Input, Stack } from "@chakra-ui/react";
import { Button } from "../../components/ui/button";
+import { DialogBody, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "../../components/ui/dialog";
import EnterPassword from "./EnterPassword";
function Changepassword() {
return (
-
@@ -33,22 +27,17 @@ function Changepassword() {
New password
-
+
Confirm password
-
+
- {/*
- Save
- */}
-
- {/* */}
diff --git a/src/Pages/Profile/Profile.tsx b/src/Pages/Profile/Profile.tsx
index b32b9a0..b3b5b2f 100644
--- a/src/Pages/Profile/Profile.tsx
+++ b/src/Pages/Profile/Profile.tsx
@@ -1,18 +1,24 @@
-import { Avatar, Box, Field, Input, SimpleGrid, Stack, Text } from "@chakra-ui/react";
+import { Avatar, Box, Center, HStack, Input, SimpleGrid, Stack, Text, VStack } from "@chakra-ui/react";
import { FaCamera } from "react-icons/fa";
import MainFrame from "../../components/MainFrame";
import Changepassword from "./ChangePassword";
+import { Field } from "../../components/ui/field";
+import EditableInput from "../../components/EditableInput";
const Profile = () => {
return (
-
-
+
+
+
+
+
+ alert("Avatar clicked!")}>
-
+
{
left={"39px"}
p="2px"
>
-
+
- {`Jackson Da`.slice(0, 10) + '...'}
-
+ Ritesh Pandey
+
Employee ID: #1245679
-
-
-
- First Name
-
-
-
- last Name
-
-
-
- Phone Number
-
-
-
- Update password
- {/*
- Change Password
- */}
-
+
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
)
diff --git a/src/components/EditableInput.tsx b/src/components/EditableInput.tsx
new file mode 100644
index 0000000..59d9cc3
--- /dev/null
+++ b/src/components/EditableInput.tsx
@@ -0,0 +1,53 @@
+import { Editable } from "@chakra-ui/react";
+import { FC } from "react";
+
+interface InputProps {
+ value?: string;
+ onChange?: (value: string) => void;
+ defaultValue?: string;
+ placeholder?: string;
+ props?: any;
+ type?:string
+}
+const EditableInput: FC = ({
+ value,
+ onChange,
+ defaultValue,
+ placeholder,
+ type,
+ ...props
+}) => {
+ return (
+ onChange && onChange}
+ w={"100%"}
+ size={"sm"}
+ textAlign="start"
+ defaultValue={defaultValue || ""}
+ >
+
+
+
+ );
+};
+
+export default EditableInput;
diff --git a/src/components/MainFrame.tsx b/src/components/MainFrame.tsx
index 9c66e8c..4394283 100644
--- a/src/components/MainFrame.tsx
+++ b/src/components/MainFrame.tsx
@@ -10,14 +10,15 @@ interface MainFrameProps {
children: React.ReactNode
title?: string
transperant?:boolean
+ props?:any
}
-const MainFrame: FC = ({ children, transperant }) => {
+const MainFrame: FC = ({ children, transperant, props }) => {
return (
-
+
(
return (
{label && (
-
+
{label}