Update DashboardCardWrapper.tsx

This commit is contained in:
Hristo Nedelkov 2023-10-13 14:41:22 +03:00
parent 0ba73281f8
commit 57f0bbfda0
1 changed files with 3 additions and 0 deletions

View File

@ -4,12 +4,14 @@ type DashboardCardWrapperProps = {
children: React.ReactNode
padding?: string
width: string
height?: string
}
const DashboardCardWrapper = ({
children,
padding = '12px 16px',
width,
height
}: DashboardCardWrapperProps) => {
return (
<Shadow
@ -17,6 +19,7 @@ const DashboardCardWrapper = ({
style={{
flexGrow: '1',
width: width,
height: height,
borderRadius: '16px',
padding,
backgroundColor: '$background',