Skip to content

Commit

Permalink
improve code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
bfintal authored Oct 8, 2024
1 parent 1fa30fd commit 84331ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/font-awesome-icon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ const addSVGAttributes = ( svgHTML, attributesToAdd = {}, attributesToRemove = [
}

const FontAwesomeIcon = memo( props => {
const { svgAttrsToAdd = { width: '32', height: '32' }, svgAttrsToRemove = [ 'id', 'data-name' ] } = props
const {
svgAttrsToAdd = { width: '32', height: '32' },
svgAttrsToRemove = [ 'id', 'data-name' ],
} = props
const [ forceUpdateCount, setForceUpdateCount ] = useState( 0 )
const forceUpdate = () => {
setForceUpdateCount( forceUpdateCount + 1 )
Expand Down

0 comments on commit 84331ed

Please sign in to comment.