mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-23 01:38:57 +00:00
feat: create separated overview card
This commit is contained in:
parent
3a12bbcde3
commit
1237781780
30
src/pages/ValidatorOnboarding/Overview/OverviewCard.tsx
Normal file
30
src/pages/ValidatorOnboarding/Overview/OverviewCard.tsx
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
import { YStack } from 'tamagui'
|
||||||
|
import { Text } from '@status-im/components'
|
||||||
|
|
||||||
|
type OverviewCardProps = {
|
||||||
|
text: string
|
||||||
|
value: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const OverviewCard = ({ text, value }: OverviewCardProps) => {
|
||||||
|
return (
|
||||||
|
<YStack
|
||||||
|
style={{
|
||||||
|
borderRadius: '16px',
|
||||||
|
border: '1px solid rgba(0, 0, 0, 0.15)',
|
||||||
|
width: '45%',
|
||||||
|
padding: '12px 16px',
|
||||||
|
backgroundColor: '#FFF',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text size={19} weight={'semibold'}>
|
||||||
|
{text}
|
||||||
|
</Text>
|
||||||
|
<Text size={27} color="blue" weight={'semibold'}>
|
||||||
|
{value}
|
||||||
|
</Text>
|
||||||
|
</YStack>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default OverviewCard
|
Loading…
x
Reference in New Issue
Block a user