aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-25 14:52:49 -0400
committerIvan Chen <ivan@tagg.id>2021-05-25 14:52:49 -0400
commit7f47d1f36255ff1e42efea1d0cf6c1b97fc557b1 (patch)
tree8973bcf073efeb69a93a9b0fb162d7d8cee90904 /src/components
parent9df26f5ff25b4a6953518639d7dfcd16a03802a3 (diff)
Finish styling badges
Diffstat (limited to 'src/components')
-rw-r--r--src/components/suggestedPeople/BadgeIcon.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/suggestedPeople/BadgeIcon.tsx b/src/components/suggestedPeople/BadgeIcon.tsx
index e8425308..8f576a43 100644
--- a/src/components/suggestedPeople/BadgeIcon.tsx
+++ b/src/components/suggestedPeople/BadgeIcon.tsx
@@ -1,6 +1,12 @@
import {useNavigation} from '@react-navigation/core';
import React from 'react';
-import {Image, ImageSourcePropType, StyleSheet} from 'react-native';
+import {
+ Image,
+ ImageSourcePropType,
+ StyleProp,
+ StyleSheet,
+ ViewStyle,
+} from 'react-native';
import {TouchableOpacity} from 'react-native-gesture-handler';
import LinearGradient from 'react-native-linear-gradient';
import {UniversityBadge} from '../../types';
@@ -9,13 +15,14 @@ import {normalize} from '../../utils';
interface BadgeIconProps {
badge: UniversityBadge;
img: ImageSourcePropType;
+ style?: StyleProp<ViewStyle>;
}
-const BadgeIcon: React.FC<BadgeIconProps> = ({badge, img}) => {
+const BadgeIcon: React.FC<BadgeIconProps> = ({badge, img, style}) => {
const navigation = useNavigation();
return (
<TouchableOpacity
- style={styles.badgeButton}
+ style={[styles.badgeButton, style]}
onPress={() => {
navigation.navigate('MutualBadgeHolders', {
badge_id: badge.id,