diff --git a/src/components/YourPage/UpdateButton.jsx b/src/components/YourPage/UpdateButton.jsx
new file mode 100644
index 0000000..52ee39b
--- /dev/null
+++ b/src/components/YourPage/UpdateButton.jsx
@@ -0,0 +1,14 @@
+import LoadingSpinner from "../Spinners/LoadingSpinner";
+
+const UpdateButton = ({ onClick, loading }) => (
+
+);
+
+export default UpdateButton;
diff --git a/src/components/YourPage/YourPageForm.jsx b/src/components/YourPage/YourPageForm.jsx
new file mode 100644
index 0000000..0074c17
--- /dev/null
+++ b/src/components/YourPage/YourPageForm.jsx
@@ -0,0 +1,42 @@
+import InputCom from "../Helpers/Inputs/InputCom/index";
+import UpdateButton from "./UpdateButton";
+
+const YourPageForm = ({ values, onChange, onSubmit, loading }) => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
+
+export default YourPageForm;
diff --git a/src/components/YourPage/index.jsx b/src/components/YourPage/index.jsx
index 1072e0f..e5da466 100644
--- a/src/components/YourPage/index.jsx
+++ b/src/components/YourPage/index.jsx
@@ -1,8 +1,51 @@
-import React from "react";
+import React, { useState } from "react";
import Layout from "../Partials/Layout";
-import { InputCom } from "../AddJob/settings";
+import usersService from "../../services/UsersService";
+import YourPageForm from "./YourPageForm";
const YourPage = () => {
+ const [pageValues, setPageValues] = useState({
+ intro: "",
+ description: "",
+ });
+
+ const [response, setResponse] = useState({
+ loading: false,
+ data: {},
+ error: "",
+ msg: "",
+ });
+
+ const handleChange = (event) => {
+ let { name, value } = event.target;
+ setPageValues((prev) => ({ ...prev, [name]: value }));
+ };
+
+ const updateYourPageDetails = async () => {
+ try {
+ setResponse({ loading: true, error: "", msg: "" });
+
+ let api = new usersService();
+ const res = await api.MyPageIntro(pageValues);
+
+ setResponse({
+ loading: false,
+ data: res.data,
+ msg: "Page updated successfully",
+ });
+
+ // Clear form after successful update
+ setPageValues({ intro: "", description: "" });
+ } catch (error) {
+ setResponse({
+ loading: false,
+ data: {},
+ error: "Error updating page",
+ msg: "",
+ });
+ }
+ };
+
return (
@@ -12,43 +55,12 @@ const YourPage = () => {
My page
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+