Skip to content

Commit d24e29a

Browse files
authored
Fixed trades risk disclaimer on mobile (#1402)
1 parent cf11899 commit d24e29a

File tree

2 files changed

+28
-36
lines changed

2 files changed

+28
-36
lines changed

packages/app/features/account/components/AccountHeader.tsx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Avatar, Button, FadeCard, Paragraph, Separator, XStack, YStack } from '@my/ui'
1+
import { Avatar, Button, Fade, FadeCard, Paragraph, Separator, XStack, YStack } from '@my/ui'
22
import type { YStackProps } from 'tamagui'
33
import { IconAccount, IconQRFull, IconShare } from 'app/components/icons'
44
import { useUser } from 'app/utils/useUser'
@@ -52,28 +52,30 @@ export const AccountHeader = (props: YStackProps) => {
5252
</YStack>
5353
</XStack>
5454
</FadeCard>
55-
<XStack gap={'$3.5'}>
56-
<Button
57-
f={1}
58-
py={'$5'}
59-
bw={0}
60-
h={'auto'}
61-
br={'$5'}
62-
onPress={handleSharePress}
63-
hoverStyle={hoverStyles}
64-
>
65-
<Button.Icon>
66-
<IconShare size={'$1.5'} color={'$primary'} $theme-light={{ color: '$color12' }} />
67-
</Button.Icon>
68-
<Button.Text size={'$5'}>Refer Friends</Button.Text>
69-
</Button>
70-
<Button f={1} py={'$5'} h={'auto'} br={'$5'} bw={0} hoverStyle={hoverStyles}>
71-
<Button.Icon>
72-
<IconQRFull size={'$1'} color={'$primary'} $theme-light={{ color: '$color12' }} />
73-
</Button.Icon>
74-
<Button.Text size={'$5'}>Share Profile</Button.Text>
75-
</Button>
76-
</XStack>
55+
<Fade>
56+
<XStack gap={'$3.5'}>
57+
<Button
58+
f={1}
59+
py={'$5'}
60+
bw={0}
61+
h={'auto'}
62+
br={'$5'}
63+
onPress={handleSharePress}
64+
hoverStyle={hoverStyles}
65+
>
66+
<Button.Icon>
67+
<IconShare size={'$1.5'} color={'$primary'} $theme-light={{ color: '$color12' }} />
68+
</Button.Icon>
69+
<Button.Text size={'$5'}>Refer Friends</Button.Text>
70+
</Button>
71+
<Button f={1} py={'$5'} h={'auto'} br={'$5'} bw={0} hoverStyle={hoverStyles}>
72+
<Button.Icon>
73+
<IconQRFull size={'$1'} color={'$primary'} $theme-light={{ color: '$color12' }} />
74+
</Button.Icon>
75+
<Button.Text size={'$5'}>Share Profile</Button.Text>
76+
</Button>
77+
</XStack>
78+
</Fade>
7779
</YStack>
7880
)
7981
}

packages/app/features/swap/form/RiskDialog/SwapRiskDialog.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,8 @@ const SwapRiskDialog = () => {
2828

2929
return (
3030
<Dialog open={isOpen} onOpenChange={handleClose}>
31-
<Dialog.Adapt when="sm" platform="touch">
32-
<Dialog.Sheet zIndex={400000} modal dismissOnSnapToBottom>
33-
<Dialog.Sheet.Frame padding="$4">
34-
<Dialog.Adapt.Contents />
35-
</Dialog.Sheet.Frame>
36-
<Dialog.Sheet.Overlay />
37-
</Dialog.Sheet>
38-
</Dialog.Adapt>
39-
4031
<Dialog.Portal>
4132
<Dialog.Overlay />
42-
4333
<Dialog.Content
4434
key="swap-risk-dialog"
4535
gap="$4"
@@ -90,8 +80,8 @@ const SwapRiskDialog = () => {
9080
</XStack>
9181
<XStack justifyContent="flex-end" marginTop="$4" gap="$4">
9282
<Dialog.Close asChild>
93-
<Button testID={'swapRiskDialogCancelButton'} br={'$2'}>
94-
Cancel
83+
<Button theme="red_active" testID={'swapRiskDialogCancelButton'} br={'$2'}>
84+
<Button.Text>Cancel</Button.Text>
9585
</Button>
9686
</Dialog.Close>
9787
<Button
@@ -102,7 +92,7 @@ const SwapRiskDialog = () => {
10292
disabled={!isChecked}
10393
disabledStyle={{ opacity: 0.5 }}
10494
>
105-
<Button.Text>Continue</Button.Text>
95+
<Button.Text>I Agree & Continue</Button.Text>
10696
</Button>
10797
</XStack>
10898
</YStack>

0 commit comments

Comments
 (0)