no mo flex

This commit is contained in:
Violet Caulfield
2024-10-18 18:49:44 -05:00
parent 7b047675c5
commit 96143c31a1

View File

@@ -3,7 +3,7 @@ import { SizeTokens, XStack, Label, Separator, Switch } from "tamagui";
export function SwitchWithLabel(props: { size: SizeTokens; checked: boolean, label: string, onCheckedChange: (value: boolean) => void }) {
const id = `switch-${props.size.toString().slice(1)}-${props.checked ?? ''}}`
return (
<XStack flex={1} width={200} alignItems="center" gap="$4">
<XStack width={200} alignItems="center" gap="$4">
<Label
paddingRight="$0"
minWidth={90}