card grid component props refactor

This commit is contained in:
tmshv committed 2023-02-09 20:08:35 +05:00
1 parent 7c8fd851b1
commit 2e358fc609
1 file changed
+3 -3
+3 -3
View File
@@ -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>
)
}