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
|
||||
}
|
||||
|
||||
export const CardGrid: React.FC<CardGridProps> = props => {
|
||||
export const CardGrid: React.FC<CardGridProps> = ({ children, style }) => {
|
||||
return (
|
||||
<section className={s.grid} style={props.style}>
|
||||
{props.children}
|
||||
<section className={s.grid} style={style}>
|
||||
{children}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user