Skip to content

Commit

Permalink
Add missing useMemo dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 6, 2024
1 parent 8dd95a5 commit 2668723
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/components/HeaderWithBackButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,25 @@ function HeaderWithBackButton({
textStyles={[titleColor ? StyleUtils.getTextColorStyle(titleColor) : {}, isCentralPaneSettings && styles.textHeadlineH2]}
/>
);
}, [StyleUtils, policy, progressBarPercentage, report, shouldEnableDetailPageNavigation, shouldShowAvatarWithDisplay, stepCounter, styles, subtitle, title, titleColor, translate]);
}, [
StyleUtils,
isCentralPaneSettings,
policy,
progressBarPercentage,
report,
shouldEnableDetailPageNavigation,
shouldShowAvatarWithDisplay,
stepCounter,
styles.flexGrow1,
styles.headerProgressBar,
styles.headerProgressBarContainer,
styles.headerProgressBarFill,
styles.textHeadlineH2,
subtitle,
title,
titleColor,
translate,
]);

return (
<View
Expand Down

0 comments on commit 2668723

Please sign in to comment.