@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
2
2
import Modal from 'components/Modal/index' ;
3
3
import { PostHog } from 'posthog-node' ;
4
4
import { uuid } from 'utils/common' ;
5
- import { IconHeart , IconUser , IconUsers } from '@tabler/icons' ;
5
+ import { IconHeart , IconUser , IconUsers , IconPlus } from '@tabler/icons' ;
6
6
import platformLib from 'platform' ;
7
7
import StyledWrapper from './StyledWrapper' ;
8
8
import { useTheme } from 'providers/Theme/index' ;
@@ -59,7 +59,7 @@ const CheckIcon = () => {
59
59
} ;
60
60
61
61
const GoldenEdition = ( { onClose } ) => {
62
- const { storedTheme } = useTheme ( ) ;
62
+ const { displayedTheme } = useTheme ( ) ;
63
63
64
64
useEffect ( ( ) => {
65
65
const anonymousId = getAnonymousTrackingId ( ) ;
@@ -85,11 +85,10 @@ const GoldenEdition = ({ onClose }) => {
85
85
} ) ;
86
86
} ;
87
87
88
- const goldenEditon = [
88
+ const goldenEditonIndividuals = [
89
89
'Inbuilt Bru File Explorer' ,
90
90
'Visual Git (Like Gitlens for Vscode)' ,
91
91
'GRPC, Websocket, SocketIO, MQTT' ,
92
- 'Intergration with Secret Managers' ,
93
92
'Load Data from File for Collection Run' ,
94
93
'Developer Tools' ,
95
94
'OpenAPI Designer' ,
@@ -98,16 +97,25 @@ const GoldenEdition = ({ onClose }) => {
98
97
'Custom Themes'
99
98
] ;
100
99
100
+ const goldenEditonOrganizations = [
101
+ 'Centralized License Management' ,
102
+ 'Intergration with Secret Managers' ,
103
+ 'Private Collection Registry' ,
104
+ 'Request Forms' ,
105
+ 'Priority Support'
106
+ ] ;
107
+
101
108
const [ pricingOption , setPricingOption ] = useState ( 'individuals' ) ;
102
109
103
110
const handlePricingOptionChange = ( option ) => {
104
111
setPricingOption ( option ) ;
105
112
} ;
113
+ console . log ( displayedTheme ) ;
106
114
107
- const themeBasedContainerClassNames = storedTheme === 'light' ? 'text-gray-900' : 'text-white' ;
108
- const themeBasedTabContainerClassNames = storedTheme === 'light' ? 'bg-gray-200' : 'bg-gray-800' ;
115
+ const themeBasedContainerClassNames = displayedTheme === 'light' ? 'text-gray-900' : 'text-white' ;
116
+ const themeBasedTabContainerClassNames = displayedTheme === 'light' ? 'bg-gray-200' : 'bg-gray-800' ;
109
117
const themeBasedActiveTabClassNames =
110
- storedTheme === 'light' ? 'bg-white text-gray-900 font-medium' : 'bg-gray-700 text-white font-medium' ;
118
+ displayedTheme === 'light' ? 'bg-white text-gray-900 font-medium' : 'bg-gray-700 text-white font-medium' ;
111
119
112
120
return (
113
121
< StyledWrapper >
@@ -169,12 +177,29 @@ const GoldenEdition = ({ onClose }) => {
169
177
< HeartIcon />
170
178
< span > Support Bruno's Development</ span >
171
179
</ li >
172
- { goldenEditon . map ( ( item , index ) => (
173
- < li className = "flex items-center space-x-3" key = { index } >
174
- < CheckIcon />
175
- < span > { item } </ span >
176
- </ li >
177
- ) ) }
180
+ { pricingOption === 'individuals' ? (
181
+ < >
182
+ { goldenEditonIndividuals . map ( ( item , index ) => (
183
+ < li className = "flex items-center space-x-3" key = { index } >
184
+ < CheckIcon />
185
+ < span > { item } </ span >
186
+ </ li >
187
+ ) ) }
188
+ </ >
189
+ ) : (
190
+ < >
191
+ < li className = "flex items-center space-x-3 pb-4" >
192
+ < IconPlus size = { 16 } strokeWidth = { 1.5 } style = { { marginLeft : '2px' } } />
193
+ < span > Everything in the Individual Plan</ span >
194
+ </ li >
195
+ { goldenEditonOrganizations . map ( ( item , index ) => (
196
+ < li className = "flex items-center space-x-3" key = { index } >
197
+ < CheckIcon />
198
+ < span > { item } </ span >
199
+ </ li >
200
+ ) ) }
201
+ </ >
202
+ ) }
178
203
</ ul >
179
204
</ div >
180
205
</ Modal >
0 commit comments