feat: add cards on dashboard

This commit is contained in:
RadoslavDimchev 2023-09-13 10:45:47 +03:00
parent b57be2e594
commit 984a4577b7
3 changed files with 17 additions and 4 deletions

View File

@ -1,5 +1,6 @@
import { Text } from '@status-im/components'
import { YStack } from 'tamagui'
import DashboardCardWrapper from './DashboardCardWrapper'
type BasicInfoCardProps = {

View File

@ -1,9 +1,21 @@
import { Stack, XStack } from 'tamagui'
import { Stack, YStack } from 'tamagui'
import BasicInfoCard from './BasicInfoCard'
import AddCard from '../../components/General/AddCard'
const Dashboard = () => {
return (
<XStack>
<YStack>
<YStack
style={{
borderRadius: '16px',
boxShadow: '0 0 8px rgba(0, 0, 0, 0.1)',
width: 'fit-content',
}}
>
<AddCard />
<AddCard />
</YStack>
<Stack
style={{
display: 'grid',
@ -18,7 +30,7 @@ const Dashboard = () => {
<BasicInfoCard title="Avg. Effectiveness" value="4" />
<BasicInfoCard title="Participation Rate" value="6" />
</Stack>
</XStack>
</YStack>
)
}

View File

@ -14,7 +14,7 @@ const DashboardCardWrapper = ({ children }: DashboardCardWrapperProps) => {
}}
>
{children}
</Stack>
</Stack>
)
}