feat(client): add KYC for event joining
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
@@ -2,7 +2,6 @@ import type { EventInfo } from './types';
|
||||
import dayjs from 'dayjs';
|
||||
import { Calendar } from 'lucide-react';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import {
|
||||
Card,
|
||||
CardAction,
|
||||
@@ -13,7 +12,8 @@ import {
|
||||
} from '@/components/ui/card';
|
||||
import { Skeleton } from '../ui/skeleton';
|
||||
|
||||
export function EventCardView({ type, coverImage, eventName, description, startTime, endTime, onJoinEvent }: EventInfo) {
|
||||
export function EventCardView({ eventInfo, actionFooter }: { eventInfo: EventInfo; actionFooter: React.ReactNode }) {
|
||||
const { type, coverImage, eventName, description, startTime, endTime } = eventInfo;
|
||||
const startDayJs = dayjs(startTime);
|
||||
const endDayJs = dayjs(endTime);
|
||||
return (
|
||||
@@ -41,7 +41,7 @@ export function EventCardView({ type, coverImage, eventName, description, startT
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardFooter>
|
||||
<Button className="w-full" onClick={onJoinEvent}>加入活动</Button>
|
||||
{actionFooter}
|
||||
</CardFooter>
|
||||
</Card>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user