diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-04-22 14:32:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-22 14:32:15 -0400 |
| commit | f0cff95cfa612b295caf68552bc3d29a7fb23a42 (patch) | |
| tree | dd3df697478a19048cd4bf6d0b499a91c1a93eb3 /src/screens/badge/BadgeItem.tsx | |
| parent | 4e8e1c0d58424e6b63cfb8470fc0a73c0e6b102b (diff) | |
| parent | 33c172cc31957966b14321520c56816ba044db14 (diff) | |
Merge pull request #374 from IvanIFChen/hotfix-linting-fixup
[HOTFIX] Linter fixup
Diffstat (limited to 'src/screens/badge/BadgeItem.tsx')
| -rw-r--r-- | src/screens/badge/BadgeItem.tsx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/screens/badge/BadgeItem.tsx b/src/screens/badge/BadgeItem.tsx index 3141e662..1051d4a7 100644 --- a/src/screens/badge/BadgeItem.tsx +++ b/src/screens/badge/BadgeItem.tsx @@ -34,7 +34,7 @@ const BadgeItem: React.FC<BadgeItemProps> = ({ style={styles.border}> <TouchableOpacity onPress={() => onSelection(title)} - style={{alignSelf: 'center', marginTop: 3}}> + style={styles.button}> <LinearGradient colors={index === 0 ? BADGE_GRADIENT_FIRST : BADGE_GRADIENT_REST} // BACKGROUND_GRADIENT_MAP @@ -74,14 +74,6 @@ const styles = StyleSheet.create({ borderRadius: 8, borderColor: 'transparent', }, - selectedDetailContainer: { - flexGrow: 1, - justifyContent: 'center', - alignItems: 'center', - borderWidth: 3, - borderColor: 'white', - borderRadius: 8, - }, imageStyles: { width: 40, height: 40, @@ -96,6 +88,10 @@ const styles = StyleSheet.create({ color: 'white', marginHorizontal: '2%', }, + button: { + alignSelf: 'center', + marginTop: 3, + }, }); export default BadgeItem; |
