Skip to content

Commit d92f064

Browse files
committed
fix: make feature discovery card button full width with centered text
1 parent 7190e0d commit d92f064

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

src/components/tools/FeatureDiscoveryCard.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,19 @@ const FeatureDiscoveryCard = ({ config }: Props) => {
8080
<Icon as={X} size="sm" color="$typographySecondary" />
8181
</Pressable>
8282
</HStack>
83-
<Box marginTop="$2" alignItems="center">
84-
<Pressable
85-
onPress={handleExplore}
86-
paddingHorizontal="$3"
87-
paddingVertical="$1.5"
88-
borderRadius="$3"
89-
backgroundColor="$accentPrimary"
90-
accessibilityRole="button"
91-
accessibilityLabel={t("umrah.featureCard.explore")}>
92-
<Text size="sm" fontWeight="600" color="white">
93-
{t("umrah.featureCard.explore")}
94-
</Text>
95-
</Pressable>
96-
</Box>
83+
<Pressable
84+
onPress={handleExplore}
85+
marginTop="$2"
86+
paddingVertical="$2"
87+
borderRadius="$3"
88+
backgroundColor="$accentPrimary"
89+
alignItems="center"
90+
accessibilityRole="button"
91+
accessibilityLabel={t("umrah.featureCard.explore")}>
92+
<Text size="sm" fontWeight="600" color="white" textAlign="center" width="100%">
93+
{t("umrah.featureCard.explore")}
94+
</Text>
95+
</Pressable>
9796
</Box>
9897
</MotiView>
9998
);

0 commit comments

Comments
 (0)