Skip to content

Commit

Permalink
Merge pull request #35622 from Expensify/hayata-fix-new-workspace-button
Browse files Browse the repository at this point in the history
[CP Staging] Fix a type in a prop name

(cherry picked from commit 20e144d)
  • Loading branch information
mountiny authored and OSBotify committed Feb 5, 2024
1 parent 2ec1656 commit 2ee0288
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/FeatureList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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();

Expand Down Expand Up @@ -91,7 +91,7 @@ function FeatureList({title, subtitle, ctaText, ctaAccessibilityLabel, onCTAPres
</View>
<Button
text={ctaText}
onPress={onCTAPress}
onPress={onCtaPress}
accessibilityLabel={ctaAccessibilityLabel}
style={[styles.w100]}
success
Expand Down

0 comments on commit 2ee0288

Please sign in to comment.