Update DashboardCardWrapper.tsx
This commit is contained in:
parent
0ba73281f8
commit
57f0bbfda0
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue