+
{
Search Site
@@ -130,8 +134,8 @@ const MenuItem = ({id, url, title, activeTrail, children, level}: MenuItemProps)
"border-transparent lg:border-foggy-dark": !pageHasBanner && level === 0 && !isCurrent && inTrail,
"lg:border-white": pageHasBanner && level === 0 && isCurrent,
"lg:border-fog": pageHasBanner && level === 0 && !isCurrent && inTrail,
-
"border-transparent": level === 0 && !isCurrent && !inTrail,
+ "flex items-center gap-5": title === "Cart",
},
// Child menu item styles.
{
@@ -167,6 +171,9 @@ const MenuItem = ({id, url, title, activeTrail, children, level}: MenuItemProps)
aria-current={isCurrent ? "true" : undefined}
>
{title}
+ {title === "Cart" &&
+
+ }
{(children.length > 0 && level < menuLevelsToShow) &&
diff --git a/src/components/nodes/cards/sup-book/sup-book-card.tsx b/src/components/nodes/cards/sup-book/sup-book-card.tsx
index 3494a7e5..b66ad8ff 100644
--- a/src/components/nodes/cards/sup-book/sup-book-card.tsx
+++ b/src/components/nodes/cards/sup-book/sup-book-card.tsx
@@ -4,6 +4,7 @@ import {HtmlHTMLAttributes} from "react";
import {NodeSupBook} from "@lib/gql/__generated__/drupal.d";
import Image from "next/image";
import {BookmarkIcon} from "@heroicons/react/24/outline";
+import {twMerge} from "tailwind-merge";
type Props = HtmlHTMLAttributes
& {
node: NodeSupBook
@@ -13,25 +14,25 @@ type Props = HtmlHTMLAttributes & {
const SupBookCard = ({node, headingLevel, ...props}: Props) => {
const Heading = headingLevel === "h3" ? H3 : H2;
return (
-
+
- {node.supBookImage &&
-
+
+
{node.supBookAwards &&
-
- }
+
diff --git a/src/components/nodes/pages/sup-book/book-awards.tsx b/src/components/nodes/pages/sup-book/book-awards.tsx
index fc3bb9f9..99d187f1 100644
--- a/src/components/nodes/pages/sup-book/book-awards.tsx
+++ b/src/components/nodes/pages/sup-book/book-awards.tsx
@@ -43,7 +43,7 @@ const BookAwards = ({children}: { children: JSX.Element[] }) => {
}
- {(bottom && !showingMore) &&
+ {(bottom.length > 0 && !showingMore) &&