diff options
Diffstat (limited to 'src/view/com/util/forms/Button.tsx')
-rw-r--r-- | src/view/com/util/forms/Button.tsx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/view/com/util/forms/Button.tsx b/src/view/com/util/forms/Button.tsx index 076fa1baa..270d98317 100644 --- a/src/view/com/util/forms/Button.tsx +++ b/src/view/com/util/forms/Button.tsx @@ -42,6 +42,7 @@ export function Button({ type = 'primary', label, style, + labelContainerStyle, labelStyle, onPress, children, @@ -55,6 +56,7 @@ export function Button({ type?: ButtonType label?: string style?: StyleProp<ViewStyle> + labelContainerStyle?: StyleProp<ViewStyle> labelStyle?: StyleProp<TextStyle> onPress?: () => void | Promise<void> testID?: string @@ -173,7 +175,7 @@ export function Button({ } return ( - <View style={styles.labelContainer}> + <View style={[styles.labelContainer, labelContainerStyle]}> {label && withLoading && isLoading ? ( <ActivityIndicator size={12} color={typeLabelStyle.color} /> ) : null} @@ -182,7 +184,15 @@ export function Button({ </Text> </View> ) - }, [children, label, withLoading, isLoading, typeLabelStyle, labelStyle]) + }, [ + children, + label, + withLoading, + isLoading, + labelContainerStyle, + typeLabelStyle, + labelStyle, + ]) return ( <Pressable |