From db641ff82f3a3051d1666773235fd8c6fc3f0095 Mon Sep 17 00:00:00 2001 From: Hayata Suenaga Date: Thu, 1 Feb 2024 18:25:26 -0800 Subject: [PATCH 1/3] fix typo --- src/pages/workspace/WorkspacesListPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspacesListPage.tsx b/src/pages/workspace/WorkspacesListPage.tsx index 9b763120b30d..2ff71af530f2 100755 --- a/src/pages/workspace/WorkspacesListPage.tsx +++ b/src/pages/workspace/WorkspacesListPage.tsx @@ -340,7 +340,7 @@ function WorkspacesListPage({policies, allPolicyMembers, reimbursementAccount, r subtitle={translate('workspace.emptyWorkspace.subtitle')} ctaText={translate('workspace.new.newWorkspace')} ctaAccessibilityLabel={translate('workspace.new.newWorkspace')} - onCtaPress={() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()} + onCTAPress={() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()} // @ts-expect-error TODO: Remove once FeatureList (https://github.com/Expensify/App/issues/25039) is migrated to TS illustration={LottieAnimations.WorkspacePlanet} illustrationBackgroundColor={theme.PAGE_THEMES[SCREENS.SETTINGS.WORKSPACES].backgroundColor} From 137f77aad1da9d1c37ad72d5c1268b7f0a4a9e0c Mon Sep 17 00:00:00 2001 From: Hayata Suenaga Date: Sun, 4 Feb 2024 18:52:07 -0800 Subject: [PATCH 2/3] chore: change prop name --- src/components/FeatureList.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/FeatureList.js b/src/components/FeatureList.js index 53d0d8f7c381..14b807aed85e 100644 --- a/src/components/FeatureList.js +++ b/src/components/FeatureList.js @@ -25,7 +25,7 @@ const propTypes = { ctaAccessibilityLabel: PropTypes.string, /** Action to call on cta button press */ - onCTAPress: PropTypes.func, + onCtaPress: PropTypes.func, /** A list of menuItems representing the feature list. */ menuItems: PropTypes.arrayOf(PropTypes.shape({...menuItemPropTypes, translationKey: PropTypes.string})).isRequired, @@ -48,13 +48,13 @@ const defaultProps = { ctaText: '', ctaAccessibilityLabel: '', subtitle: '', - onCTAPress: () => {}, + onCtaPress: () => {}, illustration: null, illustrationBackgroundColor: '', illustrationStyle: [], }; -function FeatureList({title, subtitle, ctaText, ctaAccessibilityLabel, onCTAPress, menuItems, illustration, illustrationStyle, illustrationBackgroundColor}) { +function FeatureList({title, subtitle, ctaText, ctaAccessibilityLabel, onCtaPress, menuItems, illustration, illustrationStyle, illustrationBackgroundColor}) { const styles = useThemeStyles(); const {translate} = useLocalize(); @@ -91,7 +91,7 @@ function FeatureList({title, subtitle, ctaText, ctaAccessibilityLabel, onCTAPres