remove useless styles, format with biomejs

This commit is contained in:
Stef-00012 2025-02-08 21:36:49 +01:00
parent 626f025e2c
commit 4ff541d05f
No known key found for this signature in database
GPG key ID: 28BE9A9E4EF0E6BF
89 changed files with 4810 additions and 5168 deletions

View file

@ -3,24 +3,22 @@ import { TouchableOpacity, View } from "react-native";
import { styles } from "@/styles/components/checkbox";
interface Props {
value: boolean;
onValueChange: () => void
value: boolean;
onValueChange: () => void;
}
export default function CheckBox({ value, onValueChange }: Props) {
return (
<TouchableOpacity onPress={onValueChange} style={styles.checkboxContainer}>
<View style={{
...styles.checkbox,
borderColor: value ? "#323ea8" : "#222c47",
backgroundColor: value ? '#323ea8' : 'transparent'
}}>
{value && <MaterialIcons
name="check"
size={16}
color='white'
/>}
</View>
</TouchableOpacity>
);
}
return (
<TouchableOpacity onPress={onValueChange} style={styles.checkboxContainer}>
<View
style={{
...styles.checkbox,
borderColor: value ? "#323ea8" : "#222c47",
backgroundColor: value ? "#323ea8" : "transparent",
}}
>
{value && <MaterialIcons name="check" size={16} color="white" />}
</View>
</TouchableOpacity>
);
}