chore: lint
This commit is contained in:
parent
8ae3a7a9f8
commit
d5011fbaea
3 changed files with 11 additions and 3 deletions
|
@ -53,7 +53,11 @@ export default function NotificationsButton({ flex = 1 }) {
|
||||||
<View style={{ flex }}>
|
<View style={{ flex }}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.button}
|
style={styles.button}
|
||||||
accessibilityLabel={hasNewNotifications ? `Notifications - ${newCount} nouvelles notifications` : "Notifications"}
|
accessibilityLabel={
|
||||||
|
hasNewNotifications
|
||||||
|
? `Notifications - ${newCount} nouvelles notifications`
|
||||||
|
: "Notifications"
|
||||||
|
}
|
||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
onPress={() => navigation.navigate("Notifications")}
|
onPress={() => navigation.navigate("Notifications")}
|
||||||
>
|
>
|
||||||
|
|
|
@ -4,7 +4,11 @@ import { IconButton } from "react-native-paper";
|
||||||
import { MaterialCommunityIcons } from "@expo/vector-icons";
|
import { MaterialCommunityIcons } from "@expo/vector-icons";
|
||||||
import { createStyles } from "~/theme";
|
import { createStyles } from "~/theme";
|
||||||
|
|
||||||
export default function RadarButton({ onPress, isLoading = false, flex = 0.22 }) {
|
export default function RadarButton({
|
||||||
|
onPress,
|
||||||
|
isLoading = false,
|
||||||
|
flex = 0.22,
|
||||||
|
}) {
|
||||||
const styles = useStyles();
|
const styles = useStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -18,4 +18,4 @@ const useStyles = createStyles(({ wp, hp }) => ({
|
||||||
gap: wp(3), // Slightly more space between the buttons
|
gap: wp(3), // Slightly more space between the buttons
|
||||||
minHeight: 48, // Minimum touch target height for accessibility
|
minHeight: 48, // Minimum touch target height for accessibility
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Reference in a new issue