Skip to content

Commit

Permalink
fix: failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennievon committed Jul 3, 2024
1 parent bc79658 commit 3949626
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ import {
CardContent,
} from "@/src/components/ui/card";
import { Skeleton } from "@/src/components/ui/skeleton";
import { DashboardAnalyticsData } from "@/src/types/interfaces";
import React from "react";

export default function AnalyticsCard({
item,
}: {
item: {
title: string;
value: string | number | JSX.Element;
change?: string;
icon: any;
};
item: DashboardAnalyticsData;
}) {
return (
<Card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,7 @@ import { Badge } from "../../ui/badge";
import { BlocksIcon } from "lucide-react";
import { useRollupsService } from "@/src/services/useRollupsService";
import { RecentRollups } from "./recent-rollups";

interface DashboardData {
title: string;
value: string | number | JSX.Element;
icon: JSX.Element;
change?: string;
}
import { DashboardAnalyticsData } from "@/src/types/interfaces";

interface RecentData {
title: string;
Expand Down Expand Up @@ -137,7 +131,7 @@ export default function Dashboard() {
<h2 className="text-3xl font-bold tracking-tight">Tenscan</h2>
</div>
<div className="grid gap-4 grid-cols-1 sm:grid-cols-3 md:grid-cols-2 lg:grid-cols-4">
{DASHBOARD_DATA.map((item: DashboardData, index) => (
{DASHBOARD_DATA.map((item: DashboardAnalyticsData, index: number) => (
<AnalyticsCard key={index} item={item} />
))}
</div>
Expand Down
7 changes: 7 additions & 0 deletions tools/tenscan/frontend/src/types/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@ export enum BadgeType {
DEFAULT = "default",
OUTLINE = "outline",
}

export interface DashboardAnalyticsData {
title: string;
value: string | number | JSX.Element;
change?: string;
icon: any;
}

0 comments on commit 3949626

Please sign in to comment.