Clean app part show
This commit is contained in:
@@ -27,52 +27,19 @@ export default function ProductActive(){
|
|||||||
alt="users-avatar" />
|
alt="users-avatar" />
|
||||||
</div>
|
</div>
|
||||||
<div className="profile pt-4">
|
<div className="profile pt-4">
|
||||||
<h4 className="mb-1">Alice Williams</h4>
|
<h4 className="mb-1">Product Short Name</h4>
|
||||||
<p>Enthusiast</p>
|
<p>last Update : 00:00:0000</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="py-5 profile-counter">
|
|
||||||
<ul className="nav justify-content-center text-center">
|
|
||||||
<li className="nav-item border-right px-3">
|
|
||||||
<div>
|
|
||||||
<h4 className="mb-0">90</h4>
|
|
||||||
<p>Post</p>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li className="nav-item border-right px-3">
|
|
||||||
<div>
|
|
||||||
<h4 className="mb-0">1.5K</h4>
|
|
||||||
<p>Messages</p>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li className="nav-item px-3">
|
|
||||||
<div>
|
|
||||||
<h4 className="mb-0">4.4K</h4>
|
|
||||||
<p>Members</p>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="profile-btn text-center">
|
|
||||||
<div>
|
|
||||||
<button className="btn btn-light text-primary mb-2">Upload New Avatar
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<button className="btn btn-danger">Delete</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xl-5 col-md-6 col-12 border-t border-right">
|
<div className="col-xl-5 col-md-6 col-12 border-t border-right">
|
||||||
<div className="page-account-form">
|
<div className="page-account-form">
|
||||||
<div className="form-titel border-bottom p-3">
|
<div className="form-titel border-bottom p-3">
|
||||||
<h5 className="mb-0 py-2">Edit Your Personal Settings</h5>
|
<h5 className="mb-0 py-2">Edit Your Product Settings</h5>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-4">
|
<div className="p-4">
|
||||||
<form>
|
<form>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export default function ProductFactory(){
|
|||||||
|
|
||||||
const product_name = myproduct_data?.product_name;
|
const product_name = myproduct_data?.product_name;
|
||||||
|
|
||||||
// const product_status = myproduct_data?.status;
|
const product_status = myproduct_data?.status;
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<>
|
<>
|
||||||
@@ -56,9 +56,18 @@ export default function ProductFactory(){
|
|||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
<div>
|
<div>
|
||||||
<ProductStart productData={myproduct_data} />
|
{(product_status <= productConst.PRODUCT_AVAILABLE)?
|
||||||
<ProductProvision />
|
<ProductStart productData={myproduct_data} />
|
||||||
<ProductActive />
|
:<></> }
|
||||||
|
|
||||||
|
{(product_status === productConst.PRODUCT_PROVISIONING)?
|
||||||
|
<ProductProvision productData={myproduct_data} />
|
||||||
|
:<></> }
|
||||||
|
|
||||||
|
{(product_status === productConst.PRODUCT_ACTIVE)?
|
||||||
|
<ProductActive productData={myproduct_data} />
|
||||||
|
:<></> }
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export const productConst = {
|
export const productConst = {
|
||||||
PRODUCT_AVAILABLE: 0,
|
PRODUCT_AVAILABLE: 5,
|
||||||
PRODUCT_PROVISIONING: 5,
|
PRODUCT_PROVISIONING: 6,
|
||||||
PRODUCT_ACTIVE: 7,
|
PRODUCT_ACTIVE: 7,
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user