Skip to content

Commit 84331ed

Browse files
authored
improve code readability
1 parent 1fa30fd commit 84331ed

File tree

1 file changed

+4
-1
lines changed
  • src/components/font-awesome-icon

1 file changed

+4
-1
lines changed

src/components/font-awesome-icon/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ const addSVGAttributes = ( svgHTML, attributesToAdd = {}, attributesToRemove = [
8080
}
8181

8282
const FontAwesomeIcon = memo( props => {
83-
const { svgAttrsToAdd = { width: '32', height: '32' }, svgAttrsToRemove = [ 'id', 'data-name' ] } = props
83+
const {
84+
svgAttrsToAdd = { width: '32', height: '32' },
85+
svgAttrsToRemove = [ 'id', 'data-name' ],
86+
} = props
8487
const [ forceUpdateCount, setForceUpdateCount ] = useState( 0 )
8588
const forceUpdate = () => {
8689
setForceUpdateCount( forceUpdateCount + 1 )

0 commit comments

Comments
 (0)