diff --git a/src/routes/Dashboard/DashboardFavoritesView.tsx b/src/routes/Dashboard/DashboardFavoritesView.tsx index 051cb1eb9..ad41417e2 100644 --- a/src/routes/Dashboard/DashboardFavoritesView.tsx +++ b/src/routes/Dashboard/DashboardFavoritesView.tsx @@ -1,4 +1,4 @@ -import { useNavigate } from "@tanstack/react-router"; +import { Link } from "@tanstack/react-router"; import { useState } from "react"; import { Button } from "@/components/ui/button"; @@ -17,25 +17,21 @@ function getFavoriteUrl(item: FavoriteItem): string { } const FavoriteCard = ({ item }: { item: FavoriteItem }) => { - const navigate = useNavigate(); const { removeFavorite } = useFavorites(); const isPipeline = item.type === "pipeline"; return ( - - {/* Type badge */} - - - + + {isPipeline ? "Pipeline" : "Run"} - + {/* Name */} @@ -70,7 +64,7 @@ const FavoriteCard = ({ item }: { item: FavoriteItem }) => { {item.id} - + ); }; diff --git a/src/routes/Dashboard/DashboardRecentlyViewedView.tsx b/src/routes/Dashboard/DashboardRecentlyViewedView.tsx index 5ca966544..708af8e31 100644 --- a/src/routes/Dashboard/DashboardRecentlyViewedView.tsx +++ b/src/routes/Dashboard/DashboardRecentlyViewedView.tsx @@ -22,27 +22,21 @@ const RecentlyViewedCard = ({ item }: { item: RecentlyViewedItem }) => { return ( - {/* Type badge */} - - - - + + + {isPipeline ? "Pipeline" : "Run"} - + {formatRelativeTime(new Date(item.viewedAt))}