From f967cb9fadb3fc1314b24aec489c4714aed99a5d Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:07:21 +0100 Subject: [PATCH] feat: update demo plans modal (#8594) Update demo banner for PAYG plan --- .../DemoDialogPlans/DemoDialogPlans.tsx | 102 ++++++++++++------ 1 file changed, 71 insertions(+), 31 deletions(-) diff --git a/frontend/src/component/demo/DemoDialog/DemoDialogPlans/DemoDialogPlans.tsx b/frontend/src/component/demo/DemoDialog/DemoDialogPlans/DemoDialogPlans.tsx index 4fdc63e61f93..dd5d4fa9e7c0 100644 --- a/frontend/src/component/demo/DemoDialog/DemoDialogPlans/DemoDialogPlans.tsx +++ b/frontend/src/component/demo/DemoDialog/DemoDialogPlans/DemoDialogPlans.tsx @@ -3,6 +3,7 @@ import { DemoDialog } from '../DemoDialog'; import GitHub from '@mui/icons-material/GitHub'; import Launch from '@mui/icons-material/Launch'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; +import { useUiFlag } from 'hooks/useUiFlag'; const StyledDemoDialog = styled(DemoDialog)(({ theme }) => ({ '& .MuiDialog-paper': { @@ -82,6 +83,7 @@ interface IDemoDialogPlansProps { export const DemoDialogPlans = ({ open, onClose }: IDemoDialogPlansProps) => { const { trackEvent } = usePlausibleTracker(); + const isEnterprisePaygEnabled = useUiFlag('enterprise-payg'); return ( @@ -117,39 +119,77 @@ export const DemoDialogPlans = ({ open, onClose }: IDemoDialogPlansProps) => { View project on GitHub - - - Pro - - - Free your team to collaborate. We'll do the heavy - lifting. - -
- - $80/month + {isEnterprisePaygEnabled ? ( + + + Enterprise +
+ Pay-as-You-Go
- - includes 5 seats + + All the features of Enterprise with no long term + commitment. -
- -
+
+ + $75 per user/month + + + 5 users minimum + +
+ + + ) : ( + + + Pro + + + Free your team to collaborate. We'll do the heavy + lifting. + +
+ + $80/month + + + includes 5 seats + +
+ +
+ )} Enterprise