1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

(ui) small fixes

This commit is contained in:
vincent 2022-10-13 17:28:24 +02:00
parent dca2b7f5b3
commit 90005c2643
3 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@ export const CloneProductModal: React.FC<CloneProductModalProps> = ({ isOpen, to
return (
<FabModal title={t('app.admin.store.clone_product_model.clone_product')}
closeButton
isOpen={isOpen}
toggleModal={toggleModal}
width={ModalSize.medium}

View File

@ -247,7 +247,7 @@ export const ProductForm: React.FC<ProductFormProps> = ({ product, title, onSucc
<div className="grpBtn">
{product.id &&
<>
<FabButton className="main-action-btn" onClick={toggleCloneModal}>{t('app.admin.store.product_form.clone')}</FabButton>
<FabButton onClick={toggleCloneModal}>{t('app.admin.store.product_form.clone')}</FabButton>
<CloneProductModal isOpen={openCloneModal} toggleModal={toggleCloneModal} product={product} onSuccess={onSuccess} onError={onError} />
</>
}

View File

@ -35,6 +35,7 @@
img {
width: 100%;
object-fit: contain;
}
}