Legal notice page: testnet-only scope, no-services disclosure, provider imprint - #35
Conversation
…sclosure, provider imprint
There was a problem hiding this comment.
Code Review
This pull request adds a new Legal Notice page to the application, updating the sitemap, application routes, footer navigation, and SEO metadata. The reviewer identified a potential TypeScript compilation issue in the new LegalPage.tsx file due to missing imports for React.ComponentType and React.ReactNode, and provided a suggestion to import them directly from 'react'.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| import { Building2, Code2, FlaskConical, Scale, ShieldAlert } from "lucide-react"; | ||
| import { Card, CardContent, CardHeader, CardTitle } from "@/components/UI/Card"; | ||
|
|
||
| function Section({ | ||
| icon: Icon, | ||
| title, | ||
| children, | ||
| accent = "secondary", | ||
| }: { | ||
| icon: React.ComponentType<{ className?: string }>; | ||
| title: string; | ||
| children: React.ReactNode; | ||
| accent?: "secondary" | "blue"; | ||
| }) { |
There was a problem hiding this comment.
The types React.ComponentType and React.ReactNode are referenced, but React is not imported in this file. This will cause a TypeScript compilation error (Cannot find name 'React') unless React is globally available.
To resolve this, import ComponentType and ReactNode directly from 'react' and use them.
import { ComponentType, ReactNode } from "react";
import { Building2, Code2, FlaskConical, Scale, ShieldAlert } from "lucide-react";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/UI/Card";
function Section({
icon: Icon,
title,
children,
accent = "secondary",
}: {
icon: ComponentType<{ className?: string }>;
title: string;
children: ReactNode;
accent?: "secondary" | "blue";
}) {
Adds a /legal page stating: contracts live only on the QRL 2.0 testnet and stQRL/testnet QRL are valueless test assets (no real funds, no public offer of a crypto-asset); QuantaPool is free open-source software, not a crypto-asset service under MiCA, no fees or commission; no warranty (GPL-3.0 s15/16); GPL-3.0 + repo link; DigitalGuards provider block (KvK 91987482) linking to the full imprint at qrlwallet.com/legal. Footer Legal link, RouteSeo entry, sitemap entry.
Gates: eslint --max-warnings 0 green, build (tsc -b + vite) green.