changed qrcode to react-qr-code

This commit is contained in:
Justin van der Westhuizen
2025-04-25 19:46:19 +02:00
parent 8990de5618
commit 2a43b3ce4a

View File

@@ -57,7 +57,7 @@ import {
BreadcrumbSeparator BreadcrumbSeparator
} from "@app/components/ui/breadcrumb"; } from "@app/components/ui/breadcrumb";
import Link from "next/link"; import Link from "next/link";
import QRCode from "react-qr-code"; import { QRCodeCanvas } from "qrcode.react";
import QRContainer from "@app/components/QRContainer"; import QRContainer from "@app/components/QRContainer";
const createSiteFormSchema = z const createSiteFormSchema = z
@@ -780,7 +780,7 @@ PersistentKeepalive = 5`;
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
<CopyTextBox text={wgConfig} /> <CopyTextBox text={wgConfig} />
<QRContainer> <QRContainer>
<QRCode <QRCodeCanvas
value={wgConfig} value={wgConfig}
size={168} size={168}
className="mx-auto" className="mx-auto"