mirror of
https://github.com/Stef-00012/Zipline-Android-App.git
synced 2025-05-11 18:35:58 +02:00
remove useless styles, format with biomejs
This commit is contained in:
parent
626f025e2c
commit
4ff541d05f
89 changed files with 4810 additions and 5168 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue