diff --git a/components/Global/helpers/switch-with-label.tsx b/components/Global/helpers/switch-with-label.tsx index a128216f..aa3aef37 100644 --- a/components/Global/helpers/switch-with-label.tsx +++ b/components/Global/helpers/switch-with-label.tsx @@ -1,6 +1,5 @@ import { SizeTokens, XStack, Separator, Switch, ColorTokens, Theme } from "tamagui"; import { Label } from "./text"; -import { Colors } from "react-native/Libraries/NewAppScreen"; interface SwitchWithLabelProps { onCheckedChange: (value: boolean) => void, @@ -22,18 +21,17 @@ export function SwitchWithLabel(props: SwitchWithLabelProps) { > {props.label} - {/* */} + props.onCheckedChange(checked)} - backgroundColor={props.backgroundColor ?? Colors.Primary} - > + > - {/* */} + ) }