Skip to content

Commit b504fe1

Browse files
authored
[Chore] Update json component (#21020)
1 parent 275e791 commit b504fe1

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

src/components/ProductFeatures.astro

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,23 @@ const entries = Object.entries(plan);
5656
)}
5757
{additional_descriptions && (
5858
<>
59-
{value.lite ||
60-
(value.free && (
59+
{value.lite ? (
60+
<li>
61+
<strong>Lite: </strong>
62+
<Fragment
63+
set:html={marked.parseInline(value.lite.toString())}
64+
/>
65+
</li>
66+
) : (
67+
value.free && (
6168
<li>
6269
<strong>Lite: </strong>
63-
{value.lite ? (
64-
<Fragment
65-
set:html={marked.parseInline(value.lite.toString())}
66-
/>
67-
) : (
68-
<Fragment
69-
set:html={marked.parseInline(value.free.toString())}
70-
/>
71-
)}
70+
<Fragment
71+
set:html={marked.parseInline(value.free.toString())}
72+
/>
7273
</li>
73-
))}
74+
)
75+
)}
7476
</>
7577
)}
7678
{value.pro && (
@@ -83,23 +85,23 @@ const entries = Object.entries(plan);
8385
)}
8486
{additional_descriptions && (
8587
<>
86-
{value.pro_plus ||
87-
(value.pro && (
88+
{value.pro_plus ? (
89+
<li>
90+
<strong>Pro Plus: </strong>
91+
<Fragment
92+
set:html={marked.parseInline(value.pro_plus.toString())}
93+
/>
94+
</li>
95+
) : (
96+
value.pro && (
8897
<li>
8998
<strong>Pro Plus: </strong>
90-
{value.pro_plus ? (
91-
<Fragment
92-
set:html={marked.parseInline(
93-
value.pro_plus.toString(),
94-
)}
95-
/>
96-
) : (
97-
<Fragment
98-
set:html={marked.parseInline(value.pro.toString())}
99-
/>
100-
)}
99+
<Fragment
100+
set:html={marked.parseInline(value.pro.toString())}
101+
/>
101102
</li>
102-
))}
103+
)
104+
)}
103105
</>
104106
)}
105107
{value.biz && (

0 commit comments

Comments
 (0)