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