|
@ -165,6 +165,7 @@ const Dashboard: React.FC = () => { |
|
|
</div> |
|
|
</div> |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
console.log(events, "DKDDKOOKDKDOKDK"); |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div className="space-y-6 animate-fade-in"> |
|
|
<div className="space-y-6 animate-fade-in"> |
|
@ -226,7 +227,42 @@ const Dashboard: React.FC = () => { |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{/* Recent Events Table */} |
|
|
{/* Recent Events Table */} |
|
|
<EventTable events={events} /> |
|
|
|
|
|
|
|
|
{/* <EventTable events={events} /> */} |
|
|
|
|
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4"> |
|
|
|
|
|
{events?.map((items, idx) => ( |
|
|
|
|
|
<EventCountCard |
|
|
|
|
|
title={items?.eventname} |
|
|
|
|
|
count={items.count} |
|
|
|
|
|
icon={<Activity size={24} className="text-white" />} |
|
|
|
|
|
color="bg-primary-500" |
|
|
|
|
|
change={12} |
|
|
|
|
|
/> |
|
|
|
|
|
))} |
|
|
|
|
|
{/* |
|
|
|
|
|
<EventCountCard |
|
|
|
|
|
title="Signups" |
|
|
|
|
|
count={eventCounts['signup'] || 0} |
|
|
|
|
|
icon={<Users size={24} className="text-white" />} |
|
|
|
|
|
color="bg-success-500" |
|
|
|
|
|
change={5} |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<EventCountCard |
|
|
|
|
|
title="Purchases" |
|
|
|
|
|
count={eventCounts['purchase'] || 0} |
|
|
|
|
|
icon={<ShoppingCart size={24} className="text-white" />} |
|
|
|
|
|
color="bg-accent-500" |
|
|
|
|
|
change={-3} |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<EventCountCard |
|
|
|
|
|
title="Logins" |
|
|
|
|
|
count={eventCounts['login'] || 0} |
|
|
|
|
|
icon={<LogIn size={24} className="text-white" />} |
|
|
|
|
|
color="bg-secondary-500" |
|
|
|
|
|
change={8} |
|
|
|
|
|
/> */} |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
); |
|
|
); |
|
|
}; |
|
|
}; |
|
|