Skip to content

Commit 2707a46

Browse files
style(rewards): format bottom sheet files with Prettier
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
1 parent 94b74ed commit 2707a46

2 files changed

Lines changed: 113 additions & 113 deletions

File tree

app/components/UI/Rewards/components/Campaigns/OndoNotEligibleSheet.tsx

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -38,81 +38,81 @@ const OndoNotEligibleSheet: React.FC<OndoNotEligibleSheetProps> = ({
3838
onConfirm,
3939
}) => (
4040
<BottomSheet
41-
onClose={onClose}
42-
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.CONTAINER}
43-
>
44-
<Box twClassName="px-4 pb-4">
45-
{/* Close button */}
46-
<Box
47-
flexDirection={BoxFlexDirection.Row}
48-
alignItems={BoxAlignItems.Center}
49-
twClassName="justify-end mb-4"
50-
>
51-
<ButtonIcon
52-
iconName={IconName.Close}
53-
iconProps={{ color: IconColor.IconDefault }}
54-
onPress={onClose}
55-
testID="ondo-not-eligible-sheet-close"
56-
/>
57-
</Box>
41+
onClose={onClose}
42+
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.CONTAINER}
43+
>
44+
<Box twClassName="px-4 pb-4">
45+
{/* Close button */}
46+
<Box
47+
flexDirection={BoxFlexDirection.Row}
48+
alignItems={BoxAlignItems.Center}
49+
twClassName="justify-end mb-4"
50+
>
51+
<ButtonIcon
52+
iconName={IconName.Close}
53+
iconProps={{ color: IconColor.IconDefault }}
54+
onPress={onClose}
55+
testID="ondo-not-eligible-sheet-close"
56+
/>
57+
</Box>
5858

59-
{/* Warning icon */}
60-
<Box alignItems={BoxAlignItems.Center} twClassName="mb-4">
61-
<Icon
62-
name={IconName.Danger}
63-
size={IconSize.Xl}
64-
color={IconColor.WarningDefault}
65-
/>
66-
</Box>
59+
{/* Warning icon */}
60+
<Box alignItems={BoxAlignItems.Center} twClassName="mb-4">
61+
<Icon
62+
name={IconName.Danger}
63+
size={IconSize.Xl}
64+
color={IconColor.WarningDefault}
65+
/>
66+
</Box>
6767

68-
{/* Title */}
69-
<Box alignItems={BoxAlignItems.Center} twClassName="mb-4">
70-
<Text
71-
variant={TextVariant.HeadingMd}
72-
fontWeight={FontWeight.Bold}
73-
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.TITLE}
74-
>
75-
{strings('rewards.ondo_campaign_not_eligible.title')}
76-
</Text>
77-
</Box>
68+
{/* Title */}
69+
<Box alignItems={BoxAlignItems.Center} twClassName="mb-4">
70+
<Text
71+
variant={TextVariant.HeadingMd}
72+
fontWeight={FontWeight.Bold}
73+
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.TITLE}
74+
>
75+
{strings('rewards.ondo_campaign_not_eligible.title')}
76+
</Text>
77+
</Box>
7878

79-
{/* Body */}
80-
<Box twClassName="mb-6">
81-
<Text
82-
variant={TextVariant.BodyMd}
83-
color={TextColor.TextAlternative}
84-
twClassName="text-center"
85-
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.BODY}
86-
>
87-
{strings('rewards.ondo_campaign_not_eligible.body', {
88-
days: ONDO_GM_REQUIRED_QUALIFIED_DAYS,
89-
})}
90-
</Text>
91-
</Box>
79+
{/* Body */}
80+
<Box twClassName="mb-6">
81+
<Text
82+
variant={TextVariant.BodyMd}
83+
color={TextColor.TextAlternative}
84+
twClassName="text-center"
85+
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.BODY}
86+
>
87+
{strings('rewards.ondo_campaign_not_eligible.body', {
88+
days: ONDO_GM_REQUIRED_QUALIFIED_DAYS,
89+
})}
90+
</Text>
91+
</Box>
9292

93-
{/* Buttons */}
94-
<Box flexDirection={BoxFlexDirection.Row} twClassName="gap-3">
95-
<Button
96-
variant={ButtonVariant.Secondary}
97-
size={ButtonSize.Lg}
98-
onPress={onClose}
99-
twClassName="flex-1"
100-
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.CANCEL}
101-
>
102-
{strings('rewards.ondo_campaign_not_eligible.cancel')}
103-
</Button>
104-
<Button
105-
variant={ButtonVariant.Primary}
106-
size={ButtonSize.Lg}
107-
onPress={onConfirm}
108-
twClassName="flex-1"
109-
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.CONFIRM}
110-
>
111-
{strings('rewards.ondo_campaign_not_eligible.confirm')}
112-
</Button>
113-
</Box>
93+
{/* Buttons */}
94+
<Box flexDirection={BoxFlexDirection.Row} twClassName="gap-3">
95+
<Button
96+
variant={ButtonVariant.Secondary}
97+
size={ButtonSize.Lg}
98+
onPress={onClose}
99+
twClassName="flex-1"
100+
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.CANCEL}
101+
>
102+
{strings('rewards.ondo_campaign_not_eligible.cancel')}
103+
</Button>
104+
<Button
105+
variant={ButtonVariant.Primary}
106+
size={ButtonSize.Lg}
107+
onPress={onConfirm}
108+
twClassName="flex-1"
109+
testID={ONDO_NOT_ELIGIBLE_SHEET_TEST_IDS.CONFIRM}
110+
>
111+
{strings('rewards.ondo_campaign_not_eligible.confirm')}
112+
</Button>
114113
</Box>
115-
</BottomSheet>
114+
</Box>
115+
</BottomSheet>
116116
);
117117

118118
export default OndoNotEligibleSheet;

app/components/UI/Rewards/components/Vip/VipSwapsVolumeInfoSheet.tsx

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -30,52 +30,52 @@ const VipSwapsVolumeInfoSheet: React.FC<VipSwapsVolumeInfoSheetProps> = ({
3030
onClose,
3131
}) => (
3232
<BottomSheet
33-
onClose={onClose}
34-
testID={VIP_SWAPS_VOLUME_INFO_SHEET_TEST_IDS.SHEET}
35-
>
36-
<Box twClassName="px-4 pb-4">
37-
{/* Header row: spacer + close button */}
38-
<Box
39-
flexDirection={BoxFlexDirection.Row}
40-
alignItems={BoxAlignItems.Center}
41-
justifyContent={BoxJustifyContent.End}
42-
twClassName="mb-4"
43-
>
44-
<ButtonIcon
45-
iconName={IconName.Close}
46-
iconProps={{ color: IconColor.IconDefault }}
47-
onPress={onClose}
48-
testID={VIP_SWAPS_VOLUME_INFO_SHEET_TEST_IDS.CLOSE}
49-
/>
50-
</Box>
33+
onClose={onClose}
34+
testID={VIP_SWAPS_VOLUME_INFO_SHEET_TEST_IDS.SHEET}
35+
>
36+
<Box twClassName="px-4 pb-4">
37+
{/* Header row: spacer + close button */}
38+
<Box
39+
flexDirection={BoxFlexDirection.Row}
40+
alignItems={BoxAlignItems.Center}
41+
justifyContent={BoxJustifyContent.End}
42+
twClassName="mb-4"
43+
>
44+
<ButtonIcon
45+
iconName={IconName.Close}
46+
iconProps={{ color: IconColor.IconDefault }}
47+
onPress={onClose}
48+
testID={VIP_SWAPS_VOLUME_INFO_SHEET_TEST_IDS.CLOSE}
49+
/>
50+
</Box>
5151

52-
{/* Info icon */}
53-
<Box alignItems={BoxAlignItems.Center} twClassName="mb-4">
54-
<Icon
55-
name={IconName.Info}
56-
size={IconSize.Xl}
57-
color={IconColor.IconAlternative}
58-
/>
59-
</Box>
52+
{/* Info icon */}
53+
<Box alignItems={BoxAlignItems.Center} twClassName="mb-4">
54+
<Icon
55+
name={IconName.Info}
56+
size={IconSize.Xl}
57+
color={IconColor.IconAlternative}
58+
/>
59+
</Box>
6060

61-
<Box twClassName="gap-2">
62-
<Text
63-
variant={TextVariant.HeadingMd}
64-
fontWeight={FontWeight.Bold}
65-
twClassName="text-center"
66-
>
67-
{strings('rewards.vip.swaps_volume_info_title')}
68-
</Text>
69-
<Text
70-
variant={TextVariant.BodyMd}
71-
color={TextColor.TextAlternative}
72-
twClassName="text-center"
73-
>
74-
{strings('rewards.vip.swaps_volume_info_description')}
75-
</Text>
76-
</Box>
61+
<Box twClassName="gap-2">
62+
<Text
63+
variant={TextVariant.HeadingMd}
64+
fontWeight={FontWeight.Bold}
65+
twClassName="text-center"
66+
>
67+
{strings('rewards.vip.swaps_volume_info_title')}
68+
</Text>
69+
<Text
70+
variant={TextVariant.BodyMd}
71+
color={TextColor.TextAlternative}
72+
twClassName="text-center"
73+
>
74+
{strings('rewards.vip.swaps_volume_info_description')}
75+
</Text>
7776
</Box>
78-
</BottomSheet>
77+
</Box>
78+
</BottomSheet>
7979
);
8080

8181
export default VipSwapsVolumeInfoSheet;

0 commit comments

Comments
 (0)