-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from fga-eps-mds/devel
Release 2
- Loading branch information
Showing
99 changed files
with
8,070 additions
and
4,563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import PropTypes from "prop-types"; | ||
import { Box, Modal } from "@mui/material"; | ||
|
||
export default function BigModal({ show, children, handleClose }) { | ||
return ( | ||
<Modal | ||
open={show} | ||
onClose={handleClose} | ||
aria-labelledby="modal-modal-title" | ||
aria-describedby="modal-modal-description" | ||
> | ||
<Box sx={style}>{children}</Box> | ||
</Modal> | ||
); | ||
} | ||
|
||
const style = { | ||
position: "absolute", | ||
top: "50%", | ||
left: "50%", | ||
transform: "translate(-50%, -50%)", | ||
width: 600, | ||
bgcolor: "#f5f1e6", // Cor de fundo bege | ||
boxShadow: 24, | ||
p: 4, | ||
border: "2px solid #d4af37", // Borda dourada | ||
borderRadius: "10px", // Arredondamento dos cantos | ||
color: "#4e4e4e", // Cor do texto | ||
fontFamily: "'Roboto', sans-serif", | ||
}; | ||
|
||
BigModal.propTypes = { | ||
show: PropTypes.bool.isRequired, | ||
children: PropTypes.node, | ||
handleClose: PropTypes.any, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import PropTypes from "prop-types"; | ||
import { Checkbox } from "@mui/material"; | ||
|
||
const CheckboxRow = ({ label, state, setState }) => ( | ||
<div className="row"> | ||
<label>{label}</label> | ||
{state.map((checked, index) => ( | ||
<Checkbox | ||
key={index} | ||
checked={checked} | ||
onChange={() => | ||
setState((prev) => prev.map((v, i) => (i === index ? !v : v))) | ||
} | ||
/> | ||
))} | ||
</div> | ||
); | ||
|
||
// Definindo as prop-types para o componente CheckboxRow | ||
CheckboxRow.propTypes = { | ||
label: PropTypes.string.isRequired, | ||
state: PropTypes.arrayOf(PropTypes.bool).isRequired, | ||
setState: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default CheckboxRow; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.