Skip to content

Commit

Permalink
[web] Drop not needed props from internal Section component
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgdavid committed Oct 31, 2023
1 parent 8c03285 commit fc75909
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/src/components/core/Section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Icon name={name} size={size} aria-hidden />;
return <Icon name={name} size={32} />;
};

/**
Expand Down

0 comments on commit fc75909

Please sign in to comment.