File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { StyleSheet , Text , View } from 'react-native'
3
3
import { TouchableOpacity } from 'react-native-gesture-handler'
4
+ import { useSelector } from 'react-redux'
4
5
import KolCurrency from 'src/icons/KolCurrency'
5
6
import LinearBackground from 'src/kolektivo/components/LinearBackground'
6
7
import { TokenBalance } from 'src/kolektivo/components/TokenBalance'
7
8
import Clipboard from 'src/kolektivo/icons/Clipboard'
8
9
import { typeScale } from 'src/kolektivo/styles/kolektivoFonts'
9
10
import variables from 'src/kolektivo/styles/variables'
11
+ import { currentAccountSelector } from 'src/web3/selectors'
10
12
11
13
export default function UserWalletInfoSection ( ) {
14
+ const account = useSelector ( currentAccountSelector )
15
+
12
16
return (
13
17
< View style = { styles . container } >
14
18
< LinearBackground
15
19
borderRadius = { 10 }
16
20
backgroundImage = { require ( 'src/kolektivo/images/UserWalletDetailsMask.png' ) }
17
21
>
18
22
< TouchableOpacity style = { styles . addressClipboard } >
19
- < Text style = { { paddingRight : 8 } } > YolandaCW1 </ Text >
23
+ < Text style = { { paddingRight : 8 } } > { account ?. slice ( 0 , 9 ) } ... </ Text >
20
24
< Clipboard />
21
25
</ TouchableOpacity >
22
26
< View style = { styles . currency } >
You can’t perform that action at this time.
0 commit comments