mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-12 19:36:35 +00:00
feat: style and get data for basic card
This commit is contained in:
parent
a46dfa7e29
commit
c98ee6c040
@ -1,7 +1,30 @@
|
|||||||
import { Stack } from 'tamagui'
|
import { Text } from '@status-im/components'
|
||||||
|
import { YStack } from 'tamagui'
|
||||||
|
import DashboardCardWrapper from './DashboardCardWrapper'
|
||||||
|
|
||||||
const BasicInfoCard = () => {
|
type BasicInfoCardProps = {
|
||||||
return <Stack></Stack>
|
title: string
|
||||||
|
value: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const BasicInfoCard = ({ title, value }: BasicInfoCardProps) => {
|
||||||
|
return (
|
||||||
|
<DashboardCardWrapper>
|
||||||
|
<YStack
|
||||||
|
style={{
|
||||||
|
padding: '12px 16px',
|
||||||
|
width: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text size={15} weight={'semibold'}>
|
||||||
|
{title}
|
||||||
|
</Text>
|
||||||
|
<Text size={27} weight={'semibold'}>
|
||||||
|
{value}
|
||||||
|
</Text>
|
||||||
|
</YStack>
|
||||||
|
</DashboardCardWrapper>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default BasicInfoCard
|
export default BasicInfoCard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user