Compare commits
No commits in common. "f97c75dde7ed642802c4b1f8073d89e9d9480a0c" and "29c5d38befc6e93749cfafb0b1a376f1f1c9e105" have entirely different histories.
f97c75dde7
...
29c5d38bef
@ -85,21 +85,18 @@ const EmpBanner = ({ profile, loggedInUser }) => {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul className="list-inline mb-0 d-flex align-items-center flex-wrap justify-content-sm-start justify-content-center mt-4">
|
<ul className="list-inline mb-0 d-flex align-items-center flex-wrap justify-content-sm-start justify-content-center mt-4">
|
||||||
{profile?.isActive && ( // ✅ show only if active
|
|
||||||
<li className="list-inline-item">
|
|
||||||
<button
|
|
||||||
className="btn btn-sm btn-primary btn-block"
|
|
||||||
onClick={() => setShowModal(true)}
|
|
||||||
>
|
|
||||||
Edit Profile
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<li className="list-inline-item">
|
<li className="list-inline-item">
|
||||||
{profile?.id === loggedInUser?.employeeInfo?.id && (
|
<button
|
||||||
|
className="btn btn-sm btn-primary btn-block"
|
||||||
|
onClick={() => setShowModal(true)}
|
||||||
|
>
|
||||||
|
Edit Profile
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
<li className="list-inline-item">
|
||||||
|
{profile?.id == loggedInUser?.employeeInfo?.id && (
|
||||||
<button
|
<button
|
||||||
className="btn btn-sm btn-outline-primary btn-block"
|
className="btn btn-sm btn-outline-primary btn-block"
|
||||||
onClick={() => openChangePassword()}
|
onClick={() => openChangePassword()}
|
||||||
>
|
>
|
||||||
Change Password
|
Change Password
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user