fix empty project creation and use credit to generate

This commit is contained in:
Thomas Demirdjian
2025-11-04 15:59:49 +01:00
parent 7d93be845b
commit 4a45924ee0
10 changed files with 1096 additions and 487 deletions
+11 -6
View File
@@ -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={{