@@ -16,6 +16,25 @@ const PricingPlansList: FC<PricingPlansListProps> = ({ type }) => {
16
16
const { data : pricingInfoList , isLoading : isPricingInfoListLoading } = useGetPricingInfo ( ) ;
17
17
const pricingList = isPricingInfoListLoading ? Array ( 4 ) . fill ( 0 ) : pricingInfoList ;
18
18
19
+ const pricingListDescriptions = [
20
+ {
21
+ id : 1 ,
22
+ description : 'For casual degens' ,
23
+ } ,
24
+ {
25
+ id : 2 ,
26
+ description : 'For individuals' ,
27
+ } ,
28
+ {
29
+ id : 3 ,
30
+ description : 'For growing apps' ,
31
+ } ,
32
+ {
33
+ id : 4 ,
34
+ description : 'For advanced solutions' ,
35
+ } ,
36
+ ] ;
37
+
19
38
return (
20
39
< Box
21
40
flexDirection = { { initial : 'row' , ml : 'column' } }
@@ -93,7 +112,7 @@ const PricingPlansList: FC<PricingPlansListProps> = ({ type }) => {
93
112
color = "text-secondary"
94
113
variant = "bm-regular"
95
114
>
96
- { /* { planItem?.planFor} */ }
115
+ { pricingListDescriptions ?. find ( ( desc ) => desc . id === planItem ?. id ) ?. description }
97
116
</ Text >
98
117
</ Box >
99
118
@@ -103,36 +122,36 @@ const PricingPlansList: FC<PricingPlansListProps> = ({ type }) => {
103
122
width = "auto"
104
123
gap = "spacing-lg"
105
124
>
106
- < Box
107
- css = {
108
- planItem ?. value > 0
109
- ? css `
110
- margin : var (--spacing-none );
111
- `
112
- : css `
113
- margin : var (--spacing-none ) var (--spacing-none ) 20px var (--spacing-none );
114
- `
115
- }
116
- >
125
+ < Box >
117
126
< Text
118
127
color = "text-primary"
119
128
variant = "h2-semibold"
120
129
>
121
130
{ planItem ?. value >= 0
122
131
? planItem ?. value > 0
123
- ? ( type == 'monthly' ? planItem ?. value : planItem ?. value * 12 ) ?. toLocaleString ( 'en-US' , {
132
+ ? ( type == 'monthly' ? planItem ?. value : planItem ?. value * 0.85 ) ?. toLocaleString ( 'en-US' , {
124
133
style : 'currency' ,
125
134
currency : 'USD' ,
126
135
} )
127
136
: 'Free'
128
137
: 'Talk to us!' }
129
138
</ Text >
139
+
130
140
{ planItem ?. value > 0 && (
131
141
< Text
132
142
color = "text-tertiary"
133
143
variant = "bs-semibold"
134
144
>
135
- per month billed yearly
145
+ { ( planItem . id == '2' || planItem . id == '3' ) && `per month` } { type == 'yearly' && `billed yearly` }
146
+ </ Text >
147
+ ) }
148
+
149
+ { planItem ?. id == '4' && (
150
+ < Text
151
+ color = "text-tertiary"
152
+ variant = "bs-semibold"
153
+ >
154
+ Custom pricing available
136
155
</ Text >
137
156
) }
138
157
</ Box >
@@ -142,7 +161,7 @@ const PricingPlansList: FC<PricingPlansListProps> = ({ type }) => {
142
161
block
143
162
variant = { planItem ?. value === 0 ? 'outline' : planItem ?. name === 'Pro' ? 'primary' : 'tertiary' }
144
163
>
145
- Get Started
164
+ { planItem . id == '4' ? `Contact Sales` : ` Get Started` }
146
165
</ Button >
147
166
</ Link >
148
167
</ Box >
0 commit comments