From 868dd5f2203c3e80088641f14388a2fbe908c4fd Mon Sep 17 00:00:00 2001
From: Kian Newman-Hazel
Date: Mon, 16 Dec 2024 17:58:54 +0000
Subject: [PATCH] [Docs Site] Add check for plan-level info in ProductFeatures
---
src/components/ProductFeatures.astro | 104 +++++++++++++++++----------
1 file changed, 65 insertions(+), 39 deletions(-)
diff --git a/src/components/ProductFeatures.astro b/src/components/ProductFeatures.astro
index 73ad198d54e3367..f3ef124eab8bb75 100644
--- a/src/components/ProductFeatures.astro
+++ b/src/components/ProductFeatures.astro
@@ -38,7 +38,7 @@ const entries = Object.entries(plan);
{value.title}
)}
- {Object.entries(value.properties).map(([_, value]: [string, any]) => (
+ {Object.values(value.properties).map((value: any) => (
{value.summary}
)}
- -
- Free:
-
-
+ {value.free && (
+ -
+ Free:
+
+
+ )}
{additional_descriptions && (
+ <>
+ {value.lite ||
+ (value.free && (
+ -
+ Lite:
+ {value.lite ? (
+
+ ) : (
+
+ )}
+
+ ))}
+ >
+ )}
+ {value.pro && (
-
- Lite:
- {value.lite ? (
-
- ) : (
-
- )}
+ Pro:
+
)}
- -
- Pro:
-
-
{additional_descriptions && (
+ <>
+ {value.pro_plus ||
+ (value.pro && (
+ -
+ Pro Plus:
+ {value.pro_plus ? (
+
+ ) : (
+
+ )}
+
+ ))}
+ >
+ )}
+ {value.biz && (
+ -
+ Business:
+
+
+ )}
+ {value.ent && (
-
- Pro Plus:
- {value.pro_plus ? (
-
- ) : (
-
- )}
+ Enterprise:
+
)}
- -
- Business:
-
-
- -
- Enterprise:
-
-
))}