Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Nov 26, 2019
1 parent 317d7ef commit 120fd96
Showing 1 changed file with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,24 +328,22 @@ export const FooterComponent = ({
</>
);
};
// TODO: check if it's necessary
// (prevProps, nextProps) => {
// return (
// prevProps.compact === nextProps.compact &&
// prevProps.hasNextPage === nextProps.hasNextPage &&
// prevProps.height === nextProps.height &&
// prevProps.isEventViewer === nextProps.isEventViewer &&
// prevProps.isLive === nextProps.isLive &&
// prevProps.isLoading === nextProps.isLoading &&
// prevProps.itemsCount === nextProps.itemsCount &&
// prevProps.itemsPerPage === nextProps.itemsPerPage &&
// prevProps.itemsPerPageOptions === nextProps.itemsPerPageOptions &&
// prevProps.serverSideEventCount === nextProps.serverSideEventCount
// );
// };

FooterComponent.displayName = 'FooterComponent';

export const Footer = React.memo(FooterComponent);
export const Footer = React.memo(
FooterComponent,
(prevProps, nextProps) =>
prevProps.compact === nextProps.compact &&
prevProps.hasNextPage === nextProps.hasNextPage &&
prevProps.height === nextProps.height &&
prevProps.isEventViewer === nextProps.isEventViewer &&
prevProps.isLive === nextProps.isLive &&
prevProps.isLoading === nextProps.isLoading &&
prevProps.itemsCount === nextProps.itemsCount &&
prevProps.itemsPerPage === nextProps.itemsPerPage &&
prevProps.itemsPerPageOptions === nextProps.itemsPerPageOptions &&
prevProps.serverSideEventCount === nextProps.serverSideEventCount
);

Footer.displayName = 'Footer';

0 comments on commit 120fd96

Please sign in to comment.