diff --git a/src/components/SelectCircle.js b/src/components/SelectCircle.js deleted file mode 100644 index ce451e148030..000000000000 --- a/src/components/SelectCircle.js +++ /dev/null @@ -1,40 +0,0 @@ -import PropTypes from 'prop-types'; -import React from 'react'; -import {View} from 'react-native'; -import styles from '@styles/styles'; -import themeColors from '@styles/themes/default'; -import Icon from './Icon'; -import * as Expensicons from './Icon/Expensicons'; - -const propTypes = { - /** Should we show the checkmark inside the circle */ - isChecked: PropTypes.bool, - - /** Additional styles to pass to SelectCircle */ - // eslint-disable-next-line react/forbid-prop-types - styles: PropTypes.arrayOf(PropTypes.object), -}; - -const defaultProps = { - isChecked: false, - styles: [], -}; - -function SelectCircle(props) { - return ( - - {props.isChecked && ( - - )} - - ); -} - -SelectCircle.propTypes = propTypes; -SelectCircle.defaultProps = defaultProps; -SelectCircle.displayName = 'SelectCircle'; - -export default SelectCircle; diff --git a/src/components/SelectCircle.tsx b/src/components/SelectCircle.tsx new file mode 100644 index 000000000000..cf8ee6af975d --- /dev/null +++ b/src/components/SelectCircle.tsx @@ -0,0 +1,31 @@ +import React from 'react'; +import {StyleProp, View, ViewStyle} from 'react-native'; +import globalStyles from '@styles/styles'; +import themeColors from '@styles/themes/default'; +import Icon from './Icon'; +import * as Expensicons from './Icon/Expensicons'; + +type SelectCircleProps = { + /** Should we show the checkmark inside the circle */ + isChecked: boolean; + + /** Additional styles to pass to SelectCircle */ + styles?: StyleProp; +}; + +function SelectCircle({isChecked = false, styles}: SelectCircleProps) { + return ( + + {isChecked && ( + + )} + + ); +} + +SelectCircle.displayName = 'SelectCircle'; + +export default SelectCircle;