Skip to content

Commit

Permalink
Merge pull request #36144 from teneeto/fix/34468/add-page-theme-for-o…
Browse files Browse the repository at this point in the history
…nboard-engagment-screen-root

fix: add page theme for onboard engagement screen root
  • Loading branch information
MonilBhavsar committed Feb 8, 2024
2 parents e632a82 + 9d0b69f commit f697c89
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/Icon/Expensicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ import QuestionMark from '@assets/images/question-mark-circle.svg';
import ReceiptSearch from '@assets/images/receipt-search.svg';
import Receipt from '@assets/images/receipt.svg';
import Rotate from '@assets/images/rotate-image.svg';
import RotateLeft from '@assets/images/rotate-left.svg';
import Scan from '@assets/images/scan.svg';
import Send from '@assets/images/send.svg';
import Shield from '@assets/images/shield.svg';
Expand Down Expand Up @@ -252,6 +253,7 @@ export {
Receipt,
ReceiptSearch,
Rotate,
RotateLeft,
Scan,
Send,
Shield,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/OnboardEngagement/PurposeForUsingExpensifyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ function PurposeForUsingExpensifyModal() {
const styles = useThemeStyles();
const {windowHeight} = useWindowDimensions();
const theme = useTheme();
const backgroundColorStyle = StyleUtils.getBackgroundColorStyle(theme.PAGE_THEMES[SCREENS.SETTINGS.WORKSPACES].backgroundColor);
const backgroundColorStyle = StyleUtils.getBackgroundColorStyle(theme.PAGE_THEMES[SCREENS.ONBOARD_ENGAGEMENT.ROOT].backgroundColor);
const appBGColor = StyleUtils.getBackgroundColorStyle(theme.appBG);

const navigateBack = useCallback(() => {
Report.dismissEngagementModal();
Navigation.goBack(ROUTES.HOME);
Navigation.goBack();
}, []);

const completeEngagement = useCallback((message: string, choice: ValueOf<typeof CONST.INTRO_CHOICES>) => {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ const darkTheme = {
backgroundColor: colors.productDark200,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.ONBOARD_ENGAGEMENT.ROOT]: {
backgroundColor: colors.pink800,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.ONBOARD_ENGAGEMENT.EXPENSIFY_CLASSIC]: {
backgroundColor: colors.green600,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
Expand Down
4 changes: 4 additions & 0 deletions src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ const lightTheme = {
backgroundColor: colors.productDark200,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.ONBOARD_ENGAGEMENT.ROOT]: {
backgroundColor: colors.pink800,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
},
[SCREENS.ONBOARD_ENGAGEMENT.EXPENSIFY_CLASSIC]: {
backgroundColor: colors.green600,
statusBarStyle: CONST.STATUS_BAR_STYLE.LIGHT_CONTENT,
Expand Down

0 comments on commit f697c89

Please sign in to comment.