Fix frontend lint: links, unused code, quotes, img elements
- Internal links use next/link instead of <a> (no full page reload). - Remove dead code: RegisterForm's unreachable Yoco checkout branch, the unused AttendeeForms on the registration success page, unused Geist fonts, and assorted unused variables and catch bindings. - Escape quotes in JSX text; replace @ts-ignore in apiFetch with a cast. - Keep the intentional raw <img> elements (data URLs, runtime API host) with a documented lint exception; the event editor uses ApiImage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,7 @@ export const dashboardAdminHelpContent: HelpContent = {
|
||||
A day-by-day revenue chart for the past month, and a ranking of your best-performing events by revenue, registrations, and tickets sold.
|
||||
</GuideItem>
|
||||
<GuideItem icon={Zap} title="Payments overview" tone="amber">
|
||||
Today, past week, and past month totals — a quicker check than opening Reports for a simple "how much came in" question.
|
||||
Today, past week, and past month totals — a quicker check than opening Reports for a simple "how much came in" question.
|
||||
</GuideItem>
|
||||
</div>
|
||||
<p className="text-xs text-gray-500">For a deeper breakdown, filters, and exports, use Reports instead — this page is a summary, not a substitute.</p>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { FileText, Eye, Edit3, ListChecks } from "lucide-react";
|
||||
import { Eye, Edit3, ListChecks } from "lucide-react";
|
||||
import { GuideItem } from "@/components/shared/GuideItem";
|
||||
import type { HelpContent } from "./types";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user