verschieben des sofortigen verzichts auf das Widerrrufsrecht zum Anlegen des Events
This commit is contained in:
@@ -73,16 +73,29 @@ export function CTAButton({
|
||||
onPress,
|
||||
tone = 'primary',
|
||||
fullWidth = true,
|
||||
disabled = false,
|
||||
loading = false,
|
||||
}: {
|
||||
label: string;
|
||||
onPress: () => void;
|
||||
tone?: 'primary' | 'ghost';
|
||||
fullWidth?: boolean;
|
||||
disabled?: boolean;
|
||||
loading?: boolean;
|
||||
}) {
|
||||
const theme = useTheme();
|
||||
const isPrimary = tone === 'primary';
|
||||
const isDisabled = disabled || loading;
|
||||
return (
|
||||
<Pressable onPress={onPress} style={{ width: fullWidth ? '100%' : undefined, flex: fullWidth ? undefined : 1 }}>
|
||||
<Pressable
|
||||
onPress={isDisabled ? undefined : onPress}
|
||||
disabled={isDisabled}
|
||||
style={{
|
||||
width: fullWidth ? '100%' : undefined,
|
||||
flex: fullWidth ? undefined : 1,
|
||||
opacity: isDisabled ? 0.6 : 1,
|
||||
}}
|
||||
>
|
||||
<XStack
|
||||
height={56}
|
||||
borderRadius={14}
|
||||
|
||||
Reference in New Issue
Block a user