Skip to content

Commit 0a09e60

Browse files
committed
Remove revert for v2 client
1 parent 080c3c4 commit 0a09e60

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/component/cards/cards.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import "./cards.pcss";
33

44
const Cards = ({ cards }) => (
55
<div className="cards">
6-
{cards.data.map(({ id, title, teaserIcon, teaserText, links }) => (
7-
<a key={id} href={links.get("canonical").href}>
6+
{cards.map(({ id, title, teaserIcon, teaserText, links }) => (
7+
<a key={id} href={links.canonical.href}>
88
<div className="card">
99
<div className={`card-icon ${teaserIcon}`}></div>
1010
<div className="card-content">

src/component/nav/nav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Nav = ({ menu }) => {
1010
return (
1111
<div className="navigation">
1212
<ul className="menu">
13-
{menu.data.items.map(({ href, title }, i) => (
13+
{menu.items.map(({ href, title }, i) => (
1414
<li key={i}>
1515
<a href={href}>{title}</a>
1616
</li>

src/component/short-cards/short-cards.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import "./short-cards.pcss";
66
*/
77
const ShortCards = ({ cards }) => (
88
<div className="short-cards">
9-
{cards.data.map(({ id, title, teaserIcon, links }) => (
9+
{cards.map(({ id, title, teaserIcon, links }) => (
1010
<a
1111
key={id}
1212
className={`short-card-link`}
1313
title={title}
14-
href={links.get("canonical").href}
14+
href={links.canonical.href}
1515
>
1616
<div className="short-card">
1717
<div className={`short-card-icon ${teaserIcon}`}></div>

src/page/basic-page/basic-page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const BasicPage = ({ fields }) => {
2020
<Header menu={mainMenu} links={links}></Header>
2121
<main>
2222
<section className="basic-page-content">
23-
{relatedLinks && relatedLinks.data.length > 0 ? (
23+
{relatedLinks && relatedLinks.length > 0 ? (
2424
<div className="sidebar">
2525
<div className="sidebar-title">Dive Deeper</div>
2626
<ShortCards cards={relatedLinks}></ShortCards>

0 commit comments

Comments
 (0)