diff --git a/amp-client/src/Pages/ClientPages/ClientProfile/ClientProfile.jsx b/amp-client/src/Pages/ClientPages/ClientProfile/ClientProfile.jsx index 3113fc7..aa8f694 100644 --- a/amp-client/src/Pages/ClientPages/ClientProfile/ClientProfile.jsx +++ b/amp-client/src/Pages/ClientPages/ClientProfile/ClientProfile.jsx @@ -4,6 +4,7 @@ import { toast } from "react-toastify"; import { useNavigate } from "react-router-dom"; import "react-toastify/dist/ReactToastify.css"; import axiosBaseUrl from "../../../Axios/axios"; +import InputField from "../../../Components/CommonComponents/InputField/InputField"; import ActionButton from "../../../Components/CommonComponents/ActionButton/ActionButton"; const ClientProfile = () => { @@ -44,38 +45,35 @@ const ClientProfile = () => {

Change Password

-

Current Password:

- setCurrentPassword(e.target.value)} - required + type="password" + width="90%" />
-

New Password:

- setNewPassword(e.target.value)} - required + type="password" + width="90%" />
-

Confirm New Password:

- setConfirmPassword(e.target.value)} - required + type="password" + width="90%" />
@@ -83,10 +81,9 @@ const ClientProfile = () => { text="Save Changes" backgroundColor="#233A7E" color="#FFF" - width="100%" + width="50%" margin="20px 0 0" /> - {/* {message &&

{message}

} */}
); diff --git a/amp-client/src/Pages/ClientPages/ClientProfile/styles.css b/amp-client/src/Pages/ClientPages/ClientProfile/styles.css index 11c9a09..e34b84c 100644 --- a/amp-client/src/Pages/ClientPages/ClientProfile/styles.css +++ b/amp-client/src/Pages/ClientPages/ClientProfile/styles.css @@ -5,32 +5,30 @@ margin: 50px auto; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; } h2 { margin-bottom: 30px; + text-align: center; } .password-form { display: flex; flex-direction: column; + width: 100%; + align-items: center; } .form-group { + width: 100%; margin-bottom: 20px; -} - -.form-group h4 { - display: block; - margin-bottom: 5px; -} - -.password-form input { - padding: 10px; - font-size: 16px; - border: 1px solid #ccc; - border-radius: 6px; - width: 95%; + display: flex; + justify-content: center; } .form-message { @@ -38,10 +36,3 @@ h2 { color: #d00; font-weight: 500; } - -.password-form label { - font-weight: 500; - margin-bottom: 5px; - margin-top: 10px; - display: block; -}