Commit 69a2359e authored by Rafael's avatar Rafael

Atualiza versões e mudanças diversas.

parent efc55b0a
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
}, },
"icons" "icons"
], ],
["babel-plugin-direct-import", { "modules": ["@mui/material", "@mui/icons-material"] }],
"@babel/plugin-proposal-optional-chaining", "@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator", "@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-object-rest-spread", "@babel/plugin-proposal-object-rest-spread",
......
...@@ -47,12 +47,12 @@ ...@@ -47,12 +47,12 @@
"@types/react-redux": "7.1.16", "@types/react-redux": "7.1.16",
"@types/react-router": "5.1.14", "@types/react-router": "5.1.14",
"@types/react-router-dom": "5.1.7", "@types/react-router-dom": "5.1.7",
"@types/react-swipeable-views": "^0.13.1",
"@types/react-swipeable-views-utils": "^0.13.3",
"@types/redux-logger": "^3.0.7", "@types/redux-logger": "^3.0.7",
"@types/webpack": "5.28.0", "@types/webpack": "5.28.0",
"@types/webpack-bundle-analyzer": "4.4.0", "@types/webpack-bundle-analyzer": "4.4.0",
"@types/webpack-dev-server": "3.11.4", "@types/webpack-dev-server": "3.11.4",
"@types/react-swipeable-views": "^0.13.1",
"@types/react-swipeable-views-utils": "^0.13.3",
"@typescript-eslint/eslint-plugin": "^4.31.0", "@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.29.2", "@typescript-eslint/parser": "^4.29.2",
"autoprefixer": "^10.2.5", "autoprefixer": "^10.2.5",
...@@ -82,13 +82,13 @@ ...@@ -82,13 +82,13 @@
"ts-node": "10.0.0", "ts-node": "10.0.0",
"typescript": "^4.0.0", "typescript": "^4.0.0",
"webpack": "5.37.1", "webpack": "5.37.1",
"webpack-cli": "^3.0.0",
"webpack-bundle-analyzer": "^4.4.2", "webpack-bundle-analyzer": "^4.4.2",
"webpack-cli": "^3.0.0",
"webpack-dev-server": "3.11.2" "webpack-dev-server": "3.11.2"
}, },
"dependencies": { "dependencies": {
"@curio/client": "1.3.3", "@curio/client": "1.3.3",
"@curio/components": "^1.0.3", "@curio/components": "^1.0.4",
"@curio/ui": "^0.1.0", "@curio/ui": "^0.1.0",
"@date-io/date-fns": "^1.0.0", "@date-io/date-fns": "^1.0.0",
"@dynamo/components": "0.70.1", "@dynamo/components": "0.70.1",
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
"react-redux": "^7.2.0", "react-redux": "^7.2.0",
"react-router": "5.2.0", "react-router": "5.2.0",
"react-router-dom": "5.2.0", "react-router-dom": "5.2.0",
"redux": "^4.0.5", "redux": "^4.0.0",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
"redux-observable": "^1.2.0", "redux-observable": "^1.2.0",
"reselect": "^4.0.0", "reselect": "^4.0.0",
......
...@@ -2,7 +2,7 @@ import deepmerge from 'deepmerge' ...@@ -2,7 +2,7 @@ import deepmerge from 'deepmerge'
import React from 'react' import React from 'react'
import { PhotoCamera as PhotoCameraIcon } from '@mui/icons-material' import { PhotoCamera as PhotoCameraIcon } from '@mui/icons-material'
import { Button, ButtonProps } from '@mui/material' import { Box, Button, ButtonProps } from '@mui/material'
import { useTheme } from '@mui/material/styles' import { useTheme } from '@mui/material/styles'
import useStyles from './styles' import useStyles from './styles'
...@@ -18,14 +18,14 @@ interface Props { ...@@ -18,14 +18,14 @@ interface Props {
} }
const ImageUpload = (props: Props) => { const ImageUpload = (props: Props) => {
const { style, sx = {}, image, onChangeImage, label, imageStyle = {} } = props const { sx = {}, image, onChangeImage, label, imageStyle = {} } = props
const styles = useStyles(useTheme()) const styles = useStyles(useTheme())
return ( return (
<div style={deepmerge(style || {}, styles.container)}> <Box sx={deepmerge(sx || {}, styles.container)}>
{/* <Button variant="text" sx={deepmerge(styles.photoBtn, sx || {})} > */} {/* <Button variant="text" sx={deepmerge(styles.photoBtn, sx || {})} > */}
<Button variant="text" component="label" sx={deepmerge(styles.photoBtn, sx || {})}> <Button variant="text" component="label" sx={styles.photoBtn}>
{image ? ( {image ? (
<div style={deepmerge(styles.card, imageStyle)}> <div style={deepmerge(styles.card, imageStyle)}>
<img src={'data:image/png;base64,' + image} style={styles.media} /> <img src={'data:image/png;base64,' + image} style={styles.media} />
...@@ -42,7 +42,7 @@ const ImageUpload = (props: Props) => { ...@@ -42,7 +42,7 @@ const ImageUpload = (props: Props) => {
onChange={onChangeImage} onChange={onChangeImage}
/> />
</Button> </Button>
</div> </Box>
) )
} }
......
...@@ -6,6 +6,7 @@ export const defaultToobarHeight = 64 ...@@ -6,6 +6,7 @@ export const defaultToobarHeight = 64
export const theme = createTheme({ export const theme = createTheme({
palette: { palette: {
// mode: 'dark',
primary: { primary: {
light: '#034da6', light: '#034da6',
main: '#0d3366', main: '#0d3366',
......
...@@ -29,7 +29,7 @@ const References = (props: Props) => { ...@@ -29,7 +29,7 @@ const References = (props: Props) => {
const [open, setOpen] = useState(false) const [open, setOpen] = useState(false)
useEffect(() => { useEffect(() => {
props.getReferences({ personId, projectId }) if (!references.length) props.getReferences({ personId, projectId })
}, []) }, [])
const handleClickListItem = (reference: Reference) => () => { const handleClickListItem = (reference: Reference) => () => {
......
...@@ -1004,10 +1004,10 @@ ...@@ -1004,10 +1004,10 @@
react-loading-skeleton "^2.0.1" react-loading-skeleton "^2.0.1"
xstate "^4.19.1" xstate "^4.19.1"
"@curio/components@^1.0.3": "@curio/components@^1.0.4":
version "1.0.3" version "1.0.4"
resolved "https://nexus.dev.evologica.com.br/repository/npm/@curio/components/-/components-1.0.3.tgz#50ebd731a9fcadc2d091980c99669a3e7d182c01" resolved "https://nexus.dev.evologica.com.br/repository/npm/@curio/components/-/components-1.0.4.tgz#d8ddf8a1d6b83142ef67d45f8d465156b8012ec5"
integrity sha512-Xxk5IB8V6nyXeWRZdJMvwvj1xc1Xsj7QL1RPL2Emn7A28G2lZV+EstSiN6Q7SGpm+HvW8pxFvrkipv1wqAfamA== integrity sha512-SDkiUx0/c5BJExkk0AuuE6/oKplhrk+TXk5OBzut7qL90d98a28oPG2Kr6VYvzSXMIYznv1Xhv+/7hftn9ABdw==
dependencies: dependencies:
"@curio/client" "1.3.3" "@curio/client" "1.3.3"
"@date-io/date-fns" "^1.0.0" "@date-io/date-fns" "^1.0.0"
...@@ -1951,9 +1951,9 @@ ...@@ -1951,9 +1951,9 @@
"@types/react" "*" "@types/react" "*"
"@types/react@*": "@types/react@*":
version "17.0.25" version "17.0.27"
resolved "https://nexus.dev.evologica.com.br/repository/npm/@types/react/-/react-17.0.25.tgz#8b88c226e54910762decc9de2aa36b4dc9240503" resolved "https://nexus.dev.evologica.com.br/repository/npm/@types/react/-/react-17.0.27.tgz#6498ed9b3ad117e818deb5525fa1946c09f2e0e6"
integrity sha512-IXrzSOr3CVbEQgmjEdCWF57J7CVaJ7lL/n4penxHm8h0XIcr0AxqGucogh2zj3qRxgk4M4JImOP/MfomkPOhvQ== integrity sha512-zgiJwtsggVGtr53MndV7jfiUESTqrbxOcBvwfe6KS/9bzaVPCTDieTWnFNecVNx6EAaapg5xsLLWFfHHR437AA==
dependencies: dependencies:
"@types/prop-types" "*" "@types/prop-types" "*"
"@types/scheduler" "*" "@types/scheduler" "*"
...@@ -3897,7 +3897,7 @@ eslint-visitor-keys@^2.0.0: ...@@ -3897,7 +3897,7 @@ eslint-visitor-keys@^2.0.0:
resolved "https://nexus.dev.evologica.com.br/repository/npm/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" resolved "https://nexus.dev.evologica.com.br/repository/npm/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
eslint@^7.27.0: eslint@^7.0.0:
version "7.32.0" version "7.32.0"
resolved "https://nexus.dev.evologica.com.br/repository/npm/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" resolved "https://nexus.dev.evologica.com.br/repository/npm/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d"
integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment