Skip to content

Commit cefbc84

Browse files
committed
feat(suite-native): checksum message animation
1 parent bf6b74e commit cefbc84

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
2+
13
import { Link } from '@suite-native/link';
24
import { HStack, Text } from '@suite-native/atoms';
35
import { Icon } from '@suite-native/icons';
@@ -6,23 +8,25 @@ import { Translation } from '@suite-native/intl';
68
const LINK_URL = 'https://trezor.io/learn/a/evm-address-checksum-in-trezor-suite';
79

810
export const AddressChecksumMessage = () => (
9-
<HStack>
10-
<Icon name="info" size="medium" color="iconSubdued" />
11-
<Text variant="label" color="textSubdued">
12-
<Translation
13-
id="moduleSend.outputs.recipients.checksum.label"
14-
values={{
15-
link: linkChunk => (
16-
<Link
17-
href={LINK_URL}
18-
label={linkChunk}
19-
textVariant="label"
20-
isUnderlined
21-
textColor="textSubdued"
22-
/>
23-
),
24-
}}
25-
/>
26-
</Text>
27-
</HStack>
11+
<Animated.View entering={FadeIn} exiting={FadeOut}>
12+
<HStack>
13+
<Icon name="info" size="medium" color="iconSubdued" />
14+
<Text variant="label" color="textSubdued">
15+
<Translation
16+
id="moduleSend.outputs.recipients.checksum.label"
17+
values={{
18+
link: linkChunk => (
19+
<Link
20+
href={LINK_URL}
21+
label={linkChunk}
22+
textVariant="label"
23+
isUnderlined
24+
textColor="textSubdued"
25+
/>
26+
),
27+
}}
28+
/>
29+
</Text>
30+
</HStack>
31+
</Animated.View>
2832
);

0 commit comments

Comments
 (0)