Skip to content

Commit

Permalink
added React.memo() where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
calebnance committed Oct 4, 2020
1 parent 8392dba commit b399a76
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/icons/Svg.ArrowRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgArrowRight.propTypes = {
size: PropTypes.number
};

export default SvgArrowRight;
export default React.memo(SvgArrowRight);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.CheckShield.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgCheckShield.propTypes = {
size: PropTypes.number
};

export default SvgCheckShield;
export default React.memo(SvgCheckShield);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.ChevronDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgChevronDown.propTypes = {
size: PropTypes.number
};

export default SvgChevronDown;
export default React.memo(SvgChevronDown);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.ChevronRight.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgChevronRight.propTypes = {
size: PropTypes.number
};

export default SvgChevronRight;
export default React.memo(SvgChevronRight);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.Close.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgClose.propTypes = {
size: PropTypes.number
};

export default SvgClose;
export default React.memo(SvgClose);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgMenu.propTypes = {
size: PropTypes.number
};

export default SvgMenu;
export default React.memo(SvgMenu);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.QRCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgQRCode.propTypes = {
size: PropTypes.number
};

export default SvgQRCode;
export default React.memo(SvgQRCode);
2 changes: 1 addition & 1 deletion src/components/icons/Svg.Truck.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SvgTruck.propTypes = {
size: PropTypes.number
};

export default SvgTruck;
export default React.memo(SvgTruck);

0 comments on commit b399a76

Please sign in to comment.