fix(paired-device-card): main container, alignment and spacing

This commit is contained in:
RadoslavDimchev 2024-04-18 19:48:12 +03:00 committed by Emil Ivanichkov
parent 72bdd4a7dc
commit c2b19ea8bf
1 changed files with 9 additions and 14 deletions

View File

@ -1,24 +1,19 @@
import { XStack, YStack } from 'tamagui' import { XStack, YStack } from 'tamagui'
import { InfoBadgeIcon } from '@status-im/icons' import { InfoBadgeIcon } from '@status-im/icons'
import { Avatar, Text } from '@status-im/components' import { Avatar, Text } from '@status-im/components'
import { useWindowSize } from '../../../../hooks/useWindowSize'
import BorderBox from '../../../../components/General/BorderBox'
const PairedDeviceCard = () => { const PairedDeviceCard = () => {
const windowSize = useWindowSize()
return ( return (
<XStack <BorderBox
space={'$7'}
style={{ style={{
padding: '6px 12px', borderRadius: '10.1px',
border: '1px solid #DCE0E5', borderWidth: '0.5px',
borderRadius: '10px', flex: '1',
marginBottom: '20px',
width: windowSize.width < 580 ? '100%' : 'auto',
}} }}
justifyContent="space-between"
alignItems={'center'}
> >
<XStack space={'$3'}> <XStack space={'$2'} alignItems="center" justifyContent={'space-between'}>
<Avatar <Avatar
backgroundColor="pink" backgroundColor="pink"
type="icon" type="icon"
@ -33,9 +28,9 @@ const PairedDeviceCard = () => {
Stake & Chips Stake & Chips
</Text> </Text>
</YStack> </YStack>
</XStack>
<InfoBadgeIcon size={20} color="#A1ABBD" cursor={'pointer'} /> <InfoBadgeIcon size={20} color="#A1ABBD" cursor={'pointer'} />
</XStack> </XStack>
</BorderBox>
) )
} }