Skip to content

Commit

Permalink
Update page.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmio committed Apr 28, 2024
1 parent f65f06f commit 93e8cb3
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions app/pumpkin/[id]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ import MeasurementsCard from './MeasurementsCard';
import GraphCard from './GraphCard';
import { toast } from 'react-hot-toast';
import Spinner from '../../../components/ui/Spinner';
import Link from 'next/link';
import { UserContext } from '../../../contexts/UserContext'; // Adjust the path as necessary
import { Card, CardHeader, CardTitle, CardContent, CardFooter } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import {
Breadcrumb,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from "@/components/ui/breadcrumb";

const LazyImageCard = lazy(() => import('./ImageCard'));

Expand Down Expand Up @@ -114,12 +121,17 @@ function PumpkinDetail() {
return (
<div className="container mx-auto px-4 pt-10 flex flex-col">
<div className="mb-2 text-sm text-left">
<Link href="/dashboard" className="text-gray-700 hover:text-gray-900 transition duration-150 ease-in-out text-decoration-none">
<svg xmlns="http://www.w3.org/2000/svg" className="h-4 w-4 inline-flex" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 19l-7-7 7-7" />
</svg>
Dashboard
</Link>
<Breadcrumb>
<BreadcrumbList>
<BreadcrumbItem>
<BreadcrumbLink href="/dashboard">Dashboard</BreadcrumbLink>
</BreadcrumbItem>
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbPage>Pumpkin Details</BreadcrumbPage>
</BreadcrumbItem>
</BreadcrumbList>
</Breadcrumb>
</div>
<h2 className="text-2xl font-bold mb-4 text-center">{pumpkin?.name} Details</h2>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 flex-grow">
Expand Down

0 comments on commit 93e8cb3

Please sign in to comment.