Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const HalfBorderedGrid = () => {
const colWidth = { xs: 12, sm: 6, md: 4, lg: 3 };
const borderColor = 'secondary.main';
const styles = useHalfBorderedGridStyles({ borderColor, colWidth });
return (
{Array(6)
.fill(0)
.map((number, i) => (
// eslint-disable-next-line react/no-array-index-key
))}
);
};
const useGridProps = size => {
const GridItemProps = columnConfig[size];
return {
gridStyles: useHalfBorderedGridStyles({
borderColor: '#e9e9e9',
colWidth: GridItemProps,
}),
GridItemProps,
};
};