diff --git a/src/components/Global/helpers/switch-with-label.tsx b/src/components/Global/helpers/switch-with-label.tsx index 44e82a92..7cf8f794 100644 --- a/src/components/Global/helpers/switch-with-label.tsx +++ b/src/components/Global/helpers/switch-with-label.tsx @@ -1,4 +1,4 @@ -import { SizeTokens, XStack, Separator, Switch, styled } from 'tamagui' +import { SizeTokens, XStack, Separator, Switch, styled, getToken, useTheme } from 'tamagui' import { Label } from './text' import { triggerHaptic } from '../../../hooks/use-haptic-feedback' @@ -24,6 +24,8 @@ export function SwitchWithLabel(props: SwitchWithLabelProps) { props.onCheckedChange(checked) } + const theme = useTheme() + return (