Skip to content

Commit

Permalink
update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBresson committed Apr 22, 2024
1 parent 9e948d3 commit 2e8b6f2
Show file tree
Hide file tree
Showing 39 changed files with 299 additions and 210 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
2 changes: 1 addition & 1 deletion app/components/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface AccordionProps {
const Item: FC<ItemProps> = ({ title, children, isFirst, isOpen, onTitlePress }) => (
<View style={[itemStyles.container, isFirst && itemStyles.firstContainer]}>
<Pressable style={itemStyles.titleContainer} onPress={onTitlePress}>
<Ionicons name={isOpen ? "chevron-down" : "chevron-up"} size={22} style={itemStyles.icon} />
<Ionicons suppressHighlighting={true} name={isOpen ? "chevron-down" : "chevron-up"} size={22} style={itemStyles.icon} />

<Text.H3 style={itemStyles.titleText}>{title}</Text.H3>
</Pressable>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ exports[`Accordion renders correctly 1`] = `
"color": "#3957D0",
}
}
suppressHighlighting={true}
/>
<Text.H3
style={
Expand Down Expand Up @@ -145,6 +146,7 @@ exports[`Accordion renders correctly 1`] = `
"color": "#3957D0",
}
}
suppressHighlighting={true}
/>
<Text.H3
style={
Expand Down
1 change: 1 addition & 0 deletions app/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const buttonFactory: ButtonFactory = (type) => (props) => {
if (icon) {
iconItem = (
<Ionicons
suppressHighlighting={true}
name={icon as keyof typeof Ionicons.glyphMap}
size={24}
style={mainStyle.mainIcon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ exports[`renders correctly fullwidth Danger Button with icon 1`] = `
"marginHorizontal": 10,
}
}
suppressHighlighting={true}
/>
</TouchableOpacity>
`;
Expand Down Expand Up @@ -287,6 +288,7 @@ exports[`renders correctly fullwidth Primary Button with icon 1`] = `
"marginHorizontal": 10,
}
}
suppressHighlighting={true}
/>
</TouchableOpacity>
`;
Expand Down Expand Up @@ -380,6 +382,7 @@ exports[`renders correctly fullwidth Secondary Button with icon 1`] = `
"marginHorizontal": 10,
}
}
suppressHighlighting={true}
/>
</TouchableOpacity>
`;
6 changes: 4 additions & 2 deletions app/components/EmissionListItem/EmissionListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface EmissionListItemProps extends Partial<AnyEmission> {
const EmissionListItem: React.FC<EmissionListItemProps> = ({
isMitigated,
name = "",
iconName = "md-car",
iconName = "car",
title = "",
co2value = 0,
onPress,
Expand All @@ -45,6 +45,7 @@ const EmissionListItem: React.FC<EmissionListItemProps> = ({
<View style={styles.iconContainer}>
<View style={isMitigated ? styles.mitigatedCircle : styles.notMitigatedCircle} />
<Ionicons
suppressHighlighting={true}
name={iconName as keyof typeof Ionicons.glyphMap}
size={22}
style={styles.icon}
Expand All @@ -70,7 +71,8 @@ const EmissionListItem: React.FC<EmissionListItemProps> = ({
</View>
</View>
<Ionicons
name={"ios-chevron-forward-outline"}
suppressHighlighting={true}
name={"chevron-forward-outline"}
size={18}
style={styles.icon}
color={Colors.grey70}
Expand Down
Loading

0 comments on commit 2e8b6f2

Please sign in to comment.