Skip to content

Commit b240888

Browse files
authored
Merge pull request #1032 from trycompai/claudio/comp-225-clean-up-animated-flow-ai-loader-edited-convert-to-banner
[dev] [claudfuen] claudio/comp-225-clean-up-animated-flow-ai-loader-edited-convert-to-banner
2 parents a05ee82 + 161087f commit b240888

File tree

3 files changed

+55
-6
lines changed

3 files changed

+55
-6
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
'use client';
2+
3+
import CalendarEmbed from '@/components/calendar-embed';
4+
import { Button } from '@comp/ui/button';
5+
import {
6+
Dialog,
7+
DialogContent,
8+
DialogDescription,
9+
DialogHeader,
10+
DialogTitle,
11+
DialogTrigger,
12+
} from '@comp/ui/dialog';
13+
import { Phone } from 'lucide-react';
14+
15+
export function BookingDialog() {
16+
return (
17+
<Dialog>
18+
<DialogTrigger asChild>
19+
<Button variant="outline" size="sm" className="w-full">
20+
<Phone className="h-4 w-4" />
21+
Book a Call with Our Team
22+
</Button>
23+
</DialogTrigger>
24+
<DialogContent className="sm:max-w-4xl md:max-w-5xl lg:max-w-6xl w-[95vw] h-[70vh] p-0 overflow-y-auto">
25+
<div className="flex flex-col h-full">
26+
<DialogHeader className="px-8 py-6 border-b">
27+
<DialogTitle className="text-xl font-semibold">
28+
Schedule a Call with Our Compliance Experts
29+
</DialogTitle>
30+
<DialogDescription className="mt-2">
31+
Have questions about our plans? Want to learn how we can help you achieve compliance
32+
in 14 days? Book a call with our team.
33+
</DialogDescription>
34+
</DialogHeader>
35+
<div className="flex-1 mx-auto w-full">
36+
<CalendarEmbed />
37+
</div>
38+
</div>
39+
</DialogContent>
40+
</Dialog>
41+
);
42+
}

apps/app/src/app/(app)/upgrade/[orgId]/pricing-cards.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { useAction } from 'next-safe-action/hooks';
1919
import { useRouter } from 'next/navigation';
2020
import { useState } from 'react';
2121
import { toast } from 'sonner';
22+
import { BookingDialog } from './components/BookingDialog';
2223

2324
interface PricingCardsProps {
2425
organizationId: string;
@@ -196,6 +197,7 @@ const paidFeatures = [
196197
'Dedicated Success Team',
197198
'24x7x365 Support & SLA',
198199
'Slack Channel with Comp AI',
200+
'12-month minimum term',
199201
];
200202

201203
export function PricingCards({ organizationId, priceDetails }: PricingCardsProps) {
@@ -446,6 +448,16 @@ export function PricingCards({ organizationId, priceDetails }: PricingCardsProps
446448
<ReviewSection rating={4.7} reviewCount={100} />
447449
</div>
448450
</Card>
451+
452+
{/* Help Section */}
453+
<Card className="bg-muted/30 border-dashed">
454+
<CardContent className="p-4">
455+
<p className="text-xs text-muted-foreground text-center mb-3">
456+
Have questions? We're here to help
457+
</p>
458+
<BookingDialog />
459+
</CardContent>
460+
</Card>
449461
</div>
450462
</div>
451463
</div>

apps/app/src/components/calendar-embed.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ export default function CalendarEmbed() {
1212
}, []);
1313

1414
return (
15-
<Cal
16-
namespace="meet-us"
17-
calLink="team/compai/meet-us"
18-
style={{ width: '100%', height: '100%', overflow: 'scroll' }}
19-
config={{ layout: 'month_view' }}
20-
/>
15+
<Cal namespace="meet-us" calLink="team/compai/meet-us" config={{ layout: 'month_view' }} />
2116
);
2217
}

0 commit comments

Comments
 (0)