fix empty project creation and use credit to generate
This commit is contained in:
@@ -28,9 +28,11 @@ const BorderGradientButton = ({
|
||||
disabled = false,
|
||||
maxWidth = null,
|
||||
size = "medium",
|
||||
height = null,
|
||||
}) => {
|
||||
const resolvedSize = HEIGHT_BY_SIZE[size] ? size : "medium";
|
||||
const buttonHeight = HEIGHT_BY_SIZE[resolvedSize];
|
||||
const buttonHeight =
|
||||
typeof height === "number" ? height : HEIGHT_BY_SIZE[resolvedSize];
|
||||
const fontSize = FONT_SIZE_BY_SIZE[resolvedSize];
|
||||
const iconSize = resolvedSize === "small" ? 14 : 16;
|
||||
|
||||
@@ -38,11 +40,14 @@ const BorderGradientButton = ({
|
||||
<Pressable
|
||||
onPress={onPress}
|
||||
disabled={disabled}
|
||||
style={{
|
||||
maxWidth: maxWidth ? maxWidth : null,
|
||||
...containerStyle,
|
||||
opacity: disabled ? 0.6 : 1,
|
||||
}}
|
||||
style={[
|
||||
{
|
||||
maxWidth: maxWidth ? maxWidth : null,
|
||||
height: buttonHeight,
|
||||
opacity: disabled ? 0.6 : 1,
|
||||
},
|
||||
containerStyle,
|
||||
]}
|
||||
>
|
||||
<BorderGradient
|
||||
gradientProps={{
|
||||
|
||||
Reference in New Issue
Block a user