Skip to content

Commit

Permalink
Merge pull request #11663 from gadhiyamanan/UpdateTooltipText
Browse files Browse the repository at this point in the history
fix tooltip text doesn't change to copied
  • Loading branch information
Gonals authored Oct 10, 2022
2 parents f846519 + b5c0101 commit b648295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CopyTextToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CopyTextToClipboard extends React.Component {
suppressHighlighting
>
<Text style={this.props.textStyles}>{this.props.text}</Text>
<Tooltip text={this.props.translate('reportActionContextMenu.copyToClipboard')}>
<Tooltip text={this.props.translate(`reportActionContextMenu.${this.state.showCheckmark ? 'copied' : 'copyToClipboard'}`)}>
<Icon
src={this.state.showCheckmark ? Expensicons.Checkmark : Expensicons.Clipboard}
fill={this.state.showCheckmark ? themeColors.iconSuccessFill : themeColors.icon}
Expand Down

0 comments on commit b648295

Please sign in to comment.