From 98d848798c41c28fd18b196528701601cf8c0f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Enr=C3=ADquez?= Date: Tue, 26 Dec 2023 14:56:28 -0500 Subject: [PATCH] =?UTF-8?q?Correcci=C3=B3n=20de=20proptypes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Error.jsx | 4 ++-- src/components/Inicializar.jsx | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Error.jsx b/src/components/Error.jsx index 54edb29..e48cf8b 100644 --- a/src/components/Error.jsx +++ b/src/components/Error.jsx @@ -21,11 +21,11 @@ const ErrorAlert = ({titulo,texto,align = "center",severity = "error"}) => { ); }; -Error.propTypes={ +ErrorAlert.propTypes={ titulo: PropTypes.string.isRequired, texto: PropTypes.string, align: PropTypes.string, severity: PropTypes.string }; -export default ErrorAlert; \ No newline at end of file +export default ErrorAlert; diff --git a/src/components/Inicializar.jsx b/src/components/Inicializar.jsx index 99f5c64..88aee62 100644 --- a/src/components/Inicializar.jsx +++ b/src/components/Inicializar.jsx @@ -65,7 +65,10 @@ const Inicializar = ({ return ( - + {children} @@ -83,4 +86,4 @@ Inicializar.propTypes={ children: PropTypes.element.isRequired }; -export default Inicializar; \ No newline at end of file +export default Inicializar;