From 7de099acc91a5e46e43a1191efeab3952c29182b Mon Sep 17 00:00:00 2001
From: mokelgit
Date: Thu, 30 May 2024 09:01:59 -0400
Subject: [PATCH] adjusted notes/subheading on fundamentals
---
app/(layout)/fundamentals/[metric]/layout.tsx | 35 ++++++-------------
components/layout/QuestionAnswer.tsx | 15 ++++++--
2 files changed, 24 insertions(+), 26 deletions(-)
diff --git a/app/(layout)/fundamentals/[metric]/layout.tsx b/app/(layout)/fundamentals/[metric]/layout.tsx
index c111eeec..a115470e 100644
--- a/app/(layout)/fundamentals/[metric]/layout.tsx
+++ b/app/(layout)/fundamentals/[metric]/layout.tsx
@@ -203,33 +203,10 @@ export default async function Layout({
- ) : pageData.title === "Transaction Costs" ? (
-
{pageData.tags.map((tag, i) => (
@@ -253,6 +230,16 @@ export default async function Layout({
className="rounded-3xl bg-forest-50 dark:bg-forest-900 px-[63px] py-[23px] flex flex-col"
question={`What does ${pageData.title} tell you?`}
answer={pageData.why}
+ note={
+ pageData.note && (
+
+
+ Note:{" "}
+
+ {pageData.note}
+
+ )
+ }
startOpen
/>
diff --git a/components/layout/QuestionAnswer.tsx b/components/layout/QuestionAnswer.tsx
index fb9561f1..51fb9404 100644
--- a/components/layout/QuestionAnswer.tsx
+++ b/components/layout/QuestionAnswer.tsx
@@ -7,11 +7,13 @@ import { useElementSizeObserver } from "@/hooks/useElementSizeObserver";
export default function QuestionAnswer({
question,
answer,
+ note,
className = "",
startOpen = false,
}: {
question: string | React.ReactNode;
answer: string | React.ReactNode;
+ note?: string | React.ReactNode;
className?: string;
startOpen?: boolean;
}) {
@@ -26,10 +28,11 @@ export default function QuestionAnswer({
onClick={() => setOpen(!open)}
>
-
{question}
@@ -44,6 +47,14 @@ export default function QuestionAnswer({
{answer}
+