Combine item pages and update them #26

This commit is contained in:
prayag17 committed 2023-04-11 14:30:43 +05:30
1 parent 0d3b7c855c
commit 9ad438429f
7 files changed
+252 -479

No files matched your search

+8 -1
View File
@@ -16,7 +16,12 @@ import Typography from "@mui/material/Typography";
import ButtonGroup from "@mui/material/ButtonGroup";
import "./cardScroller.module.scss";
export const CardScroller = ({ children, displayCards, title }) => {
export const CardScroller = ({
children,
displayCards,
title,
headingProps,
}) => {
const responsive = {
superLargeDesktop: {
// the naming can be any, depends on you.
@@ -50,6 +55,7 @@ export const CardScroller = ({ children, displayCards, title }) => {
variant="h4"
color="textPrimary"
className="card-scroller-heading"
{...headingProps}
>
<div className="card-scroller-heading-decoration"></div>{" "}
{title}
@@ -88,4 +94,5 @@ export const CardScroller = ({ children, displayCards, title }) => {
CardScroller.propTypes = {
displayCards: PropTypes.number.isRequired,
title: PropTypes.string.isRequired,
headingProps: PropTypes.any,
};