diff --git a/src/components/CopyTextToClipboard.js b/src/components/CopyTextToClipboard.js index b7c6b3a04d81..3a95dcd253a8 100644 --- a/src/components/CopyTextToClipboard.js +++ b/src/components/CopyTextToClipboard.js @@ -4,9 +4,11 @@ import Text from './Text'; import * as Expensicons from './Icon/Expensicons'; import Clipboard from '../libs/Clipboard'; import Icon from './Icon'; +import Tooltip from './Tooltip'; import styles from '../styles/styles'; import themeColors from '../styles/themes/default'; import variables from '../styles/variables'; +import withLocalize, {withLocalizePropTypes} from './withLocalize'; const propTypes = { /** The text to display and copy to the clipboard */ @@ -14,6 +16,8 @@ const propTypes = { /** Styles to apply to the text */ textStyles: PropTypes.arrayOf(PropTypes.object), + + ...withLocalizePropTypes, }; const defaultProps = { @@ -53,13 +57,15 @@ class CopyTextToClipboard extends React.Component { style={[styles.flexRow, styles.cursorPointer]} > {this.props.text} - + + + ); } @@ -68,4 +74,4 @@ class CopyTextToClipboard extends React.Component { CopyTextToClipboard.propTypes = propTypes; CopyTextToClipboard.defaultProps = defaultProps; -export default CopyTextToClipboard; +export default withLocalize(CopyTextToClipboard);