Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified public/images/pie-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/sector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/supplier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/userpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/ProductCategory/ProductCategory.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ function ProductCategory(props) {
props.onCategoryUpdated(props.categoryKey, categoryName, categoryImage)

closeCategoryModal()
window.location.reload()
flashInfo()
} catch (err) {
console.log(err)
Expand Down
465 changes: 458 additions & 7 deletions src/components/ProductCell/ProductCell.js

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions src/components/ProductModal/ProductModal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@media screen and (max-width: 1822px) {
.modal-box .prod-modal {
max-width: 75%;
}
}

@media screen and (max-width: 1520px) {
.modal-box .prod-modal {
max-width: 95%;
}
}

@media screen and (max-width: 1222px) {
.modal-main-container {
flex-direction: column;
}

.modal-main-container > div {
width: 100%;

}

.modal-main-container > div:first-child > div {
margin: 0 auto;
}
}

@media screen and (max-width: 512px) {
.modal-action {
justify-content: center;
}
}

@media screen and (max-width: 470px) {
.preco-container {
flex-direction: column;
}
}
24 changes: 24 additions & 0 deletions src/components/ProductModal/ProductModal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react'
import './ProductModal.css'

function ProductModal(props) {
return (
<div className="modal modal-open">
<div className="modal-box bg-[#FFC376] shadow-[inset_-2px_5px_2px_2px_rgba(0,0,0,0.25)] border-8 border-[#D87B26] min-w-[62%] py-12 prod-modal">
<h3 className="font-bold text-lg alt-color-5">{props.title}</h3>

<form onSubmit={props.handleSubmit}>
{props.children}

<div className="modal-action">
<label htmlFor={props.modalName} className="px-5 py-1 quinteral-color-bg rounded font-pixel text-2xl shadow-md hvr-grow alt-color-5-bg tertiary-color cursor-pointer" onClick={props.closeModal}>Cancelar</label>
<button type="submit" className="px-5 py-1 quarternary-color-bg rounded font-pixel text-2xl shadow-md hvr-grow alt-color-5">Salvar</button>
</div>
</form>
</div>
</div>

)
}

export default ProductModal
Loading