From 946a00ea742bf9b6ba4b870b99ee5575717b694f Mon Sep 17 00:00:00 2001 From: Drina Date: Mon, 3 Jul 2023 17:43:36 -0300 Subject: [PATCH 1/3] add fix button-url --- src/components/CasesSection/CasesSection.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/CasesSection/CasesSection.js b/src/components/CasesSection/CasesSection.js index 1343a8e3..018d5639 100644 --- a/src/components/CasesSection/CasesSection.js +++ b/src/components/CasesSection/CasesSection.js @@ -10,7 +10,6 @@ const CasesSection = ({ data }) => { const casos = cases.map(caso => casesData?.allStrapiCase?.nodes.find(ca => ca.strapiId === caso.id) ) - const casesCards = casos.map((caso, idx) => { const image = getImage(caso?.image?.localFile) @@ -21,16 +20,21 @@ const CasesSection = ({ data }) => { id={data.strapi_component + "-" + data.id} >
- +
-
{caso.title}
-

"{caso.quote.description}"

+
{caso?.title}
+

"{caso?.quote?.description}"

{caso.button?.landing_page && ( - - + + + + )} + {caso.button?.url && ( + + )}
@@ -41,9 +45,9 @@ const CasesSection = ({ data }) => { return (
{title &&

{title}

} - {(casesCards !== undefined && casesCards.length > 0) && + {casesCards !== undefined && casesCards.length > 0 && (
{casesCards}
- } + )}
) } From 4f8b903d9550945915885747eb6a90ff61fcd9d8 Mon Sep 17 00:00:00 2001 From: Drina Date: Tue, 4 Jul 2023 07:59:49 -0300 Subject: [PATCH 2/3] fix cards to casesSection --- src/components/CasesSection/CasesSection.js | 5 ++++- src/components/CasesSection/CasesSection.scss | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/CasesSection/CasesSection.js b/src/components/CasesSection/CasesSection.js index 018d5639..315b2667 100644 --- a/src/components/CasesSection/CasesSection.js +++ b/src/components/CasesSection/CasesSection.js @@ -10,12 +10,15 @@ const CasesSection = ({ data }) => { const casos = cases.map(caso => casesData?.allStrapiCase?.nodes.find(ca => ca.strapiId === caso.id) ) + console.log(casos) const casesCards = casos.map((caso, idx) => { const image = getImage(caso?.image?.localFile) return (
diff --git a/src/components/CasesSection/CasesSection.scss b/src/components/CasesSection/CasesSection.scss index 5712d7e7..4c3bbe58 100644 --- a/src/components/CasesSection/CasesSection.scss +++ b/src/components/CasesSection/CasesSection.scss @@ -10,7 +10,7 @@ .case { color: $primary; --bs-gutter-x: 0 !important; - padding: 10px; + padding: 30px; &__img { height: 200px; width: 100%; From 0ed8e08e3bcb6ebc3660b6555aadd518027ba9e4 Mon Sep 17 00:00:00 2001 From: Drina Date: Tue, 4 Jul 2023 08:02:59 -0300 Subject: [PATCH 3/3] delete console --- src/components/CasesSection/CasesSection.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/CasesSection/CasesSection.js b/src/components/CasesSection/CasesSection.js index 315b2667..444b0cec 100644 --- a/src/components/CasesSection/CasesSection.js +++ b/src/components/CasesSection/CasesSection.js @@ -10,7 +10,6 @@ const CasesSection = ({ data }) => { const casos = cases.map(caso => casesData?.allStrapiCase?.nodes.find(ca => ca.strapiId === caso.id) ) - console.log(casos) const casesCards = casos.map((caso, idx) => { const image = getImage(caso?.image?.localFile)