From fc75909826c282c8908d0e9c12e9beb28f42812c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20D=C3=ADaz=20Gonz=C3=A1lez?= Date: Tue, 31 Oct 2023 19:37:33 +0000 Subject: [PATCH] [web] Drop not needed props from internal Section component Section#SectionIcon#size was no really in use, just falling back to its default value. Section#SectionIcon#aria-hidden attribute is not needed since the core/Icon component already sets it. --- web/src/components/core/Section.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/components/core/Section.jsx b/web/src/components/core/Section.jsx index 1e16d6b486..9b165b8643 100644 --- a/web/src/components/core/Section.jsx +++ b/web/src/components/core/Section.jsx @@ -31,14 +31,13 @@ import { ValidationErrors } from "~/components/core"; * * @param {object} props * @param {string} [props.name] - the name of the icon - * @param {number} [props.size=32] - the icon size * * @return {React.ReactElement} */ -const SectionIcon = ({ name, size = 32 }) => { +const SectionIcon = ({ name }) => { if (!name) return null; - return ; + return ; }; /**