diff --git a/packages/bruno-app/src/components/Sidebar/GoldenEdition/index.js b/packages/bruno-app/src/components/Sidebar/GoldenEdition/index.js index a473ae80..5886f2a0 100644 --- a/packages/bruno-app/src/components/Sidebar/GoldenEdition/index.js +++ b/packages/bruno-app/src/components/Sidebar/GoldenEdition/index.js @@ -5,6 +5,7 @@ import { uuid } from 'utils/common'; import { IconHeart, IconUser, IconUsers } from '@tabler/icons'; import platformLib from 'platform'; import StyledWrapper from './StyledWrapper'; +import { useTheme } from 'providers/Theme/index'; let posthogClient = null; const posthogApiKey = 'phc_7gtqSrrdZRohiozPMLIacjzgHbUlhalW1Bu16uYijMR'; @@ -58,6 +59,8 @@ const CheckIcon = () => { }; const GoldenEdition = ({ onClose }) => { + const { storedTheme } = useTheme(); + useEffect(() => { const anonymousId = getAnonymousTrackingId(); const client = getPosthogClient(); @@ -101,10 +104,15 @@ const GoldenEdition = ({ onClose }) => { setPricingOption(option); }; + const themeBasedContainerClassNames = storedTheme === 'light' ? 'text-gray-900' : 'text-white'; + const themeBasedTabContainerClassNames = storedTheme === 'light' ? 'bg-gray-200' : 'bg-gray-800'; + const themeBasedActiveTabClassNames = + storedTheme === 'light' ? 'bg-white text-gray-900 font-medium' : 'bg-gray-700 text-white font-medium'; + return ( -
+

Golden Edition

{
$19
-

One Time Payment

+

One Time Payment

perpetual license for 2 devices, with 2 years of updates

) : ( @@ -136,12 +144,12 @@ const GoldenEdition = ({ onClose }) => {
)}
handlePricingOptionChange('individuals')} > @@ -149,7 +157,7 @@ const GoldenEdition = ({ onClose }) => {
handlePricingOptionChange('organizations')} >