Skip to content

Commit e1ddf49

Browse files
committed
update: added the Back to profile navigation link to the dashboard page
1 parent dfcc0ca commit e1ddf49

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • frontend/src/app/dashboard/[campaignId]

frontend/src/app/dashboard/[campaignId]/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { useEffect, useState } from "react";
44
import { useParams } from "next/navigation";
5+
import Link from "next/link";
56
import { AppShell } from "@/components/app-shell";
67
import {
78
AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer,
@@ -164,6 +165,10 @@ export default function DashboardPage() {
164165
return (
165166
<AppShell>
166167
<div className="mx-auto max-w-7xl space-y-8">
168+
<Link href={`/profile/${campaignId}`} className="text-sm text-indigo-500 hover:underline">
169+
← Back to profile
170+
</Link>
171+
167172
<header className="flex flex-col gap-2">
168173
<h1 className="text-3xl font-bold tracking-tight text-white">
169174
Campaign <span className="text-mint">Analytics</span>

0 commit comments

Comments
 (0)