Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions junction-app/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { useEffect, useState } from "react";
import { useAuth } from "@/contexts/AuthContext";
import { useRouter } from "next/navigation";
import { ArrowUpRight, FileUp, Loader2, Upload } from "lucide-react";
import { FileUp, Loader, Upload } from "lucide-react";

export default function DashboardPage() {
const { user } = useAuth();
Expand Down Expand Up @@ -51,9 +51,11 @@ export default function DashboardPage() {
file for inspection.
</p>
</div>
<button className="inline-flex items-center gap-2 rounded-full border border-white/10 px-4 py-2 text-sm text-white/70 transition hover:border-white/30 hover:text-white">
<button
onClick={() => router.push("/reports")}
className="inline-flex items-center gap-2 rounded-full border border-white/10 px-4 py-2 text-sm text-white/70 transition hover:border-white/30 hover:text-white"
>
View reports
<ArrowUpRight className="size-4" />
</button>
</div>

Expand Down Expand Up @@ -119,7 +121,7 @@ export default function DashboardPage() {
>
{isSubmitting ? (
<>
<Loader2 className="mr-2 size-5 animate-spin" />
<Loader className="mr-2 size-5 animate-spin" />
Processing
</>
) : (
Expand Down
Loading