diff --git a/.eslintrc.js b/.eslintrc.js index 75a74ed371c4..83e9479ce0c4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -116,7 +116,7 @@ module.exports = { }, { selector: ['parameter', 'method'], - format: ['camelCase'], + format: ['camelCase', 'PascalCase'], }, ], '@typescript-eslint/ban-types': [ diff --git a/src/components/Button/index.js b/src/components/Button/index.js index dc12a4ded5c2..16654ce87d30 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -9,8 +9,6 @@ import Icon from '../Icon'; import CONST from '../../CONST'; import * as StyleUtils from '../../styles/StyleUtils'; import HapticFeedback from '../../libs/HapticFeedback'; -import withNavigationFallback from '../withNavigationFallback'; -import compose from '../../libs/compose'; import * as Expensicons from '../Icon/Expensicons'; import withNavigationFocus from '../withNavigationFocus'; import validateSubmitShortcut from './validateSubmitShortcut'; @@ -328,10 +326,7 @@ class Button extends Component { Button.propTypes = propTypes; Button.defaultProps = defaultProps; -export default compose( - withNavigationFallback, - withNavigationFocus, -)( +export default withNavigationFocus( React.forwardRef((props, ref) => (