Skip to content

Commit

Permalink
feat: link to existing features from dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Mar 7, 2024
1 parent 6ca226a commit 77ccaa2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions src/views/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import { Link } from "react-router-dom";
import { BasePageLayout } from "../components/base/BasePageLayout";
import { dashboardRoutes } from "../routes";

export const Dashboard = () => (
<BasePageLayout>
<h2 className="text-2xl font-bold">Dashboard</h2>
<p className="text-sm text-gray-600">Welcome to the dashboard.</p>
<div className="flex gap-2 text-lg font-semibold [&>.active]:underline ">
<Link to={dashboardRoutes.visualization} className="btn">
Go to visualizations
</Link>
<Link to={dashboardRoutes.sessions} className="btn">
See imported sessions
</Link>
</div>
</BasePageLayout>
);
12 changes: 6 additions & 6 deletions src/views/NewLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ const navigation: NavType[] = [
icon: HomeIcon,
},
{
name: "Goals",
href: dashboardRoutes.goals,
icon: ArrowTrendingUpIcon,
name: "Visualization",
href: dashboardRoutes.visualization,
icon: ChartBarSquareIcon,
},
{
name: "Sessions",
href: dashboardRoutes.sessions,
icon: FolderIcon,
},
{
name: "Visualization",
href: dashboardRoutes.visualization,
icon: ChartBarSquareIcon,
name: "Goals",
href: dashboardRoutes.goals,
icon: ArrowTrendingUpIcon,
},
];

Expand Down

0 comments on commit 77ccaa2

Please sign in to comment.