started on adding openid login
This commit is contained in:
10
components/vendor/SidebarCard.tsx
vendored
10
components/vendor/SidebarCard.tsx
vendored
@@ -5,7 +5,7 @@ import Link from 'next/link'
|
||||
|
||||
interface SidebarCardsProps {
|
||||
description?: string | null
|
||||
events: Array<{
|
||||
events?: Array<{
|
||||
id: string
|
||||
name: string
|
||||
date: Date | null
|
||||
@@ -44,7 +44,7 @@ export function SidebarCards({ description, events, timeline, vendorId }: Sideba
|
||||
)}
|
||||
|
||||
{/* Associated Events */}
|
||||
{events.length > 0 && (
|
||||
{events && events.length > 0 && (
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Associated Events</CardTitle>
|
||||
@@ -108,7 +108,7 @@ export function SidebarCards({ description, events, timeline, vendorId }: Sideba
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-sm">Final Payment Due</span>
|
||||
<span className="text-sm text-muted-foreground">
|
||||
{formatDate(timeline.finalPaymentDue)}
|
||||
{formatDate(timeline.finalPaymentDue)}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
@@ -124,7 +124,7 @@ export function SidebarCards({ description, events, timeline, vendorId }: Sideba
|
||||
<CardContent className="space-y-3">
|
||||
<Button variant="outline" className="w-full justify-start" asChild>
|
||||
<Link href={`/vendors/${vendorId}/edit`}>
|
||||
Edit Vendor Details
|
||||
Edit Vendor Details
|
||||
</Link>
|
||||
</Button>
|
||||
<Button variant="outline" className="w-full justify-start">
|
||||
@@ -135,7 +135,7 @@ export function SidebarCards({ description, events, timeline, vendorId }: Sideba
|
||||
</Button>
|
||||
<Button variant="outline" className="w-full justify-start" asChild>
|
||||
<Link href={`/vendors/${vendorId}/payments`}>
|
||||
Record Payment
|
||||
Record Payment
|
||||
</Link>
|
||||
</Button>
|
||||
</CardContent>
|
||||
|
||||
Reference in New Issue
Block a user