Implement Card

This commit is contained in:
Hristo Nedelkov 2023-08-25 14:23:56 +03:00
parent e76bf01361
commit df14eb9cd1
2 changed files with 37 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -0,0 +1,37 @@
import { YStack } from 'tamagui'
import Icon from '../../../components/General/Icon'
import { Text } from '@status-im/components'
// make func component
type ExecClientCardProps = {
name: string
icon: string
isComingSoon?: boolean
}
const ExecClientCard = ({ name, icon, isComingSoon }: ExecClientCardProps) => {
const disabledCardStyle = {
backgroundColor: '#F5F5F5',
border: '1px solid #DCE0E5',
borderRadius: '16px',
padding: '2px 6px',
}
return (
<YStack
style={{
backgroundColor: isComingSoon ? '#F5F5F5' : 'none',
border: '1px solid #DCE0E5',
borderRadius: '16px',
padding: '12px 16px',
width: '19%',
}}
space={'$12'}
>
<Text size={27} weight={'semibold'}>
{name}
</Text>
<Icon src={icon} width={100} height={100} />
</YStack>
)
}
export default ExecClientCard