diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-20 13:31:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 13:31:35 -0400 |
commit | 1c410aa6d32f0e9221ce718008b8923d4d1b5514 (patch) | |
tree | 12f0c3af3d8e65707e7839da519b709e00a3a050 /src/components/friends/InviteFriendTile.tsx | |
parent | e5f2a993fbc9ac6dc7ac8245abe7762442e959dc (diff) | |
parent | 92c5ca830adda915dcc87948e9d23868cef5b6c4 (diff) |
Merge pull request #319 from shravyaramesh/tma716-pending
[TMA-716] Change invited to pending
Diffstat (limited to 'src/components/friends/InviteFriendTile.tsx')
-rw-r--r-- | src/components/friends/InviteFriendTile.tsx | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/components/friends/InviteFriendTile.tsx b/src/components/friends/InviteFriendTile.tsx index 3fbf2e73..95ebf16a 100644 --- a/src/components/friends/InviteFriendTile.tsx +++ b/src/components/friends/InviteFriendTile.tsx @@ -58,10 +58,17 @@ const InviteFriendTile: React.FC<InviteFriendTileProps> = ({item}) => { </View> <TouchableOpacity disabled={invited} - style={styles.button} + style={[ + styles.button, + invited ? styles.pendingButton : styles.inviteButton, + ]} onPress={handleInviteFriend}> - <Text style={styles.buttonTitle}> - {invited ? 'Invited' : 'Invite'} + <Text + style={[ + styles.buttonTitle, + invited ? styles.pendingButtonTitle : styles.inviteButtonTitle, + ]}> + {invited ? 'Pending' : 'Invite'} </Text> </TouchableOpacity> </View> @@ -98,14 +105,18 @@ const styles = StyleSheet.create({ alignItems: 'center', width: 82, height: 25, - borderColor: TAGG_LIGHT_BLUE, borderWidth: 2, borderRadius: 2, padding: 0, + borderColor: TAGG_LIGHT_BLUE, + }, + pendingButton: { + backgroundColor: TAGG_LIGHT_BLUE, + }, + inviteButton: { backgroundColor: 'transparent', }, buttonTitle: { - color: TAGG_LIGHT_BLUE, padding: 0, fontSize: normalize(11), fontWeight: '700', @@ -113,6 +124,12 @@ const styles = StyleSheet.create({ letterSpacing: normalize(0.6), paddingHorizontal: '3.8%', }, + pendingButtonTitle: { + color: 'white', + }, + inviteButtonTitle: { + color: TAGG_LIGHT_BLUE, + }, }); export default InviteFriendTile; |