From 630b93e0e3920d6520e48edb1caf47b443a26f08 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 25 Apr 2022 12:10:51 +0430 Subject: [PATCH] update src/components/CardDesign3/index.js --- src/components/CardDesign3/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/CardDesign3/index.js b/src/components/CardDesign3/index.js index b1dfbcf..ed287c0 100644 --- a/src/components/CardDesign3/index.js +++ b/src/components/CardDesign3/index.js @@ -7,13 +7,13 @@ import profilePic4 from "./images/profilePic4.svg"; import profilePic5 from "./images/profilePic5.svg"; import pen from "./pen.svg"; -const CardDesign3 = ({ items }) => { +const CardDesign3 = ({ items, num }) => { return ( <> - {items.map((item, index) => ( + {items.slice(0, num).map((item, index) => (
{/* right */}
@@ -50,6 +50,8 @@ const CardDesign3 = ({ items }) => { export default CardDesign3; CardDesign3.defaultProps = { + num: 5, + items: [ { profilePic: profilePic1,