Skip to content

Commit

Permalink
fix: avoid extra consts by destructuring early
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Mar 26, 2024
1 parent 07ab799 commit 42d1870
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sharedData/components/SharedFileIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ const ICON_FILES = {
png: 'png.png',
};

const SharedFileIcon = props => {
const { resourceType, styleProps, fallbackStyleProps } = props;

const SharedFileIcon = ({ resourceType, styleProps, fallbackStyleProps }) => {
if (_.includes(resourceType, Object.keys(ICON_FILES))) {
return (
<Box
Expand Down

0 comments on commit 42d1870

Please sign in to comment.