Permalink
Browse files

pending tick (#1024)

* pending tick

* disable lint for accessible-emoji
  • Loading branch information...
LucasMonteiro1 authored and sibelius committed Dec 4, 2018
1 parent ae53c05 commit e0fb6670add45e410d1e96a67fcc478f90a52dcf
Showing with 5 additions and 3 deletions.
  1. +3 βˆ’2 .eslintrc
  2. +2 βˆ’1 src/Bubble.js
@@ -18,6 +18,7 @@
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"react/no-unused-prop-types": 0,
"react/no-typos": 0
"react/no-typos": 0,
"jsx-a11y/accessible-emoji": 0
}
}
}
@@ -110,11 +110,12 @@ export default class Bubble extends React.PureComponent {
if (currentMessage.user._id !== this.props.user._id) {
return null;
}
if (currentMessage.sent || currentMessage.received) {
if (currentMessage.sent || currentMessage.received || currentMessage.pending) {
return (
<View style={styles.tickView}>
{currentMessage.sent && <Text style={[styles.tick, this.props.tickStyle]}>βœ“</Text>}
{currentMessage.received && <Text style={[styles.tick, this.props.tickStyle]}>βœ“</Text>}
{currentMessage.pending && <Text style={[styles.tick, this.props.tickStyle]}>πŸ•“</Text>}
</View>
);
}

0 comments on commit e0fb667

Please sign in to comment.