ok banget
This commit is contained in:
@@ -62,13 +62,13 @@ const Modal = ({ shop, isOpen, onClose, modalContent, setModal }) => {
|
||||
<PaymentOptions shopId={shop.cafeId} />
|
||||
)}
|
||||
{modalContent === "add_material" && (
|
||||
<MaterialList cafeId={shop.cafeId} />
|
||||
<MaterialList handleClose={handleOverlayClick} cafeId={shop.cafeId} />
|
||||
)}
|
||||
{modalContent === "update_stock" && (
|
||||
<MaterialMutationsPage cafeId={shop.cafeId} />
|
||||
<MaterialMutationsPage handleClose={handleOverlayClick} cafeId={shop.cafeId} />
|
||||
)}
|
||||
{modalContent === "welcome_config" && <WelcomePageEditor cafeId={shop.cafeId} welcomePageConfig={shop.welcomePageConfig} />}
|
||||
{modalContent === "reports" && <Reports cafeId={shop.cafeId} />}
|
||||
{modalContent === "reports" && <Reports handleClose={handleOverlayClick} cafeId={shop.cafeId} />}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user