role based auth
implemented superadmin -> admin -> traniner
This commit is contained in:
1 parent
16217f46ff
commit
624cdfc45c
16 files changed
+1105
-54
No files matched your search
@@ -6,8 +6,12 @@ import { RevenueChart } from "@/components/charts/RevenueChart";
|
||||
import { Card, CardHeader, CardContent } from "@/components/ui/card";
|
||||
import { useAnalytics } from "@/hooks/use-api";
|
||||
|
||||
export function AnalyticsDashboard() {
|
||||
const { data: analytics, isLoading } = useAnalytics(6);
|
||||
interface AnalyticsDashboardProps {
|
||||
gymId?: string;
|
||||
}
|
||||
|
||||
export function AnalyticsDashboard({ gymId }: AnalyticsDashboardProps) {
|
||||
const { data: analytics, isLoading } = useAnalytics(6, gymId);
|
||||
|
||||
const userGrowthData = analytics?.userGrowth ?? [];
|
||||
const membershipData = analytics?.membershipDistribution ?? [];
|
||||
|
||||
Reference in new issue
Block a user