Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions packages/components/src/primitives/Icon/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ const typesTemplate = `
export type IKeyOfIcons = keyof typeof icons;
export default icons;
`;
prettier
.format(typesTemplate, { parser: 'typescript' })
.then((formatted) => {
fs.writeFileSync(
path.resolve(__dirname, `./Icons.tsx`),
formatted,
'utf8',
);
});
prettier.format(typesTemplate, { parser: 'typescript' }).then((formatted) => {
fs.writeFileSync(path.resolve(__dirname, `./Icons.tsx`), formatted, 'utf8');
});
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ function BaseBulkSendReview({
const confirmButtonText =
approvesInfo.length > 0
? intl.formatMessage({
id: ETranslations.wallet_bulk_send_btn_approve_and_confirm,
})
id: ETranslations.wallet_bulk_send_btn_approve_and_confirm,
})
: intl.formatMessage({ id: ETranslations.wallet_bulk_send_btn_confirm });

// Handle editing approval amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ function DeviceBanner() {
onPress={() => handleOpen(item)}
pressStyle={{ scale: 0.98 }}
>
<Stack
height={180}
>
<Stack height={180}>
<Image
source={{ uri: item.image }}
style={{ width: '100%', height: '100%' }}
Expand All @@ -83,13 +81,7 @@ function DeviceBanner() {
<Icon name="PlayCircleSolid" size="$14" color="$whiteA12" />
</Stack>
</Stack>
<XStack
px="$3"
py="$3"
bg="$bgStrong"
ai="center"
jc="center"
>
<XStack px="$3" py="$3" bg="$bgStrong" ai="center" jc="center">
<SizableText
size="$headingSm"
color="$text"
Expand Down
5 changes: 4 additions & 1 deletion packages/kit/src/views/Earn/components/BannerV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ function BannerV2Cmp({ data, onBannerPress, isActive = true }: IBannerV2Props) {
}

return (
<Stack pl={isFirst ? '$pagePadding' : 0} pr={isLast ? '$pagePadding' : BANNER_GAP_TOKEN}>
<Stack
pl={isFirst ? '$pagePadding' : 0}
pr={isLast ? '$pagePadding' : BANNER_GAP_TOKEN}
>
<BannerItemV2 item={item} onPress={onBannerPress} />
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ export function EarnPageContainer({
}}
refreshControl={refreshControl}
>
<Page.Container padded={false} layout={disableMaxWidth ? 'full' : 'regular'}>
<Page.Container
padded={false}
layout={disableMaxWidth ? 'full' : 'regular'}
>
{showBreadcrumb || showHeader ? (
<XStack px="$3" pb="$5" gap="$5" ai="center">
{showBreadcrumb ? <Breadcrumb {...breadcrumbProps} /> : null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export function InvitedByFriendImage() {

const isDesktop =
!platformEnv.isNative && (gtSm || platformEnv.isExtensionUiPopup);
const lottieSource = LOTTIE_SOURCE[themeVariant === 'dark' ? 'dark' : 'light'];
const lottieSource =
LOTTIE_SOURCE[themeVariant === 'dark' ? 'dark' : 'light'];
const width = !platformEnv.isNative && gtSm ? DESKTOP_WIDTH : screenWidth;
const height = isDesktop ? width * DESKTOP_ASPECT_RATIO : screenWidth;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ export function ReferAFriendPhaseActions({

if (phaseState === EPhaseState.next) {
return (
<Button
variant="primary"
w="100%"
size="large"
onPress={handleNext}
>
<Button variant="primary" w="100%" size="large" onPress={handleNext}>
{intl.formatMessage({
id: ETranslations.global_next,
})}
Expand All @@ -81,12 +76,7 @@ export function ReferAFriendPhaseActions({
id: ETranslations.perp_term_previous,
})}
</Button>
<Button
variant="primary"
flex={1}
size="large"
onPress={handleJoin}
>
<Button variant="primary" flex={1} size="large" onPress={handleJoin}>
{intl.formatMessage({
id: ETranslations.global_join,
})}
Expand Down