From b57488e07f1f8242d166cfaf1fc3237c2b62809a Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Mon, 21 Oct 2024 13:00:24 -0500 Subject: [PATCH] moar font getting switch with label to use font --- components/helpers/switch-with-label.tsx | 4 ++-- components/helpers/text.tsx | 28 +++++++++++++++++++----- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/components/helpers/switch-with-label.tsx b/components/helpers/switch-with-label.tsx index 379873bb..a4d2646d 100644 --- a/components/helpers/switch-with-label.tsx +++ b/components/helpers/switch-with-label.tsx @@ -1,11 +1,11 @@ -import { SizeTokens, XStack, Label, Separator, Switch } from "tamagui"; +import { SizeTokens, XStack, Separator, Switch } from "tamagui"; +import { Label } from "./text"; export function SwitchWithLabel(props: { size: SizeTokens; checked: boolean, label: string, onCheckedChange: (value: boolean) => void, width?: number }) { const id = `switch-${props.size.toString().slice(1)}-${props.checked ?? ''}}` return (