further layout preview fixes
This commit is contained in:
@@ -72,15 +72,17 @@ export function CTAButton({
|
||||
label,
|
||||
onPress,
|
||||
tone = 'primary',
|
||||
fullWidth = true,
|
||||
}: {
|
||||
label: string;
|
||||
onPress: () => void;
|
||||
tone?: 'primary' | 'ghost';
|
||||
fullWidth?: boolean;
|
||||
}) {
|
||||
const theme = useTheme();
|
||||
const isPrimary = tone === 'primary';
|
||||
return (
|
||||
<Pressable onPress={onPress} style={{ width: '100%' }}>
|
||||
<Pressable onPress={onPress} style={{ width: fullWidth ? '100%' : undefined, flex: fullWidth ? undefined : 1 }}>
|
||||
<XStack
|
||||
height={56}
|
||||
borderRadius={14}
|
||||
|
||||
Reference in New Issue
Block a user