card grid component props refactor
This commit is contained in:
1 parent
7c8fd851b1
commit
2e358fc609
1 file changed
+3
-3
@@ -5,10 +5,10 @@ export type CardGridProps = {
|
|||||||
style?: React.CSSProperties
|
style?: React.CSSProperties
|
||||||
}
|
}
|
||||||
|
|
||||||
export const CardGrid: React.FC<CardGridProps> = props => {
|
export const CardGrid: React.FC<CardGridProps> = ({ children, style }) => {
|
||||||
return (
|
return (
|
||||||
<section className={s.grid} style={props.style}>
|
<section className={s.grid} style={style}>
|
||||||
{props.children}
|
{children}
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user