mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 11:41:44 +10:00
chore: use uqr
This commit is contained in:
@ -44,7 +44,6 @@
|
||||
"perfect-freehand": "^1.2.0",
|
||||
"posthog-js": "^1.75.3",
|
||||
"posthog-node": "^3.1.1",
|
||||
"qrcode.react": "^4.2.0",
|
||||
"react": "^18",
|
||||
"react-call": "^1.3.0",
|
||||
"react-dom": "^18",
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
import React from 'react';
|
||||
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
import { msg } from '@lingui/macro';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { DateTime } from 'luxon';
|
||||
import { QRCodeSVG } from 'qrcode.react';
|
||||
import { match } from 'ts-pattern';
|
||||
import { UAParser } from 'ua-parser-js';
|
||||
import { renderSVG } from 'uqr';
|
||||
|
||||
import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server';
|
||||
import { WEBAPP_BASE_URL } from '@documenso/lib/constants/app';
|
||||
@ -307,25 +305,16 @@ export default async function SigningCertificate({ searchParams }: SigningCertif
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<div className="my-8 flex-row-reverse">
|
||||
<div className="my-8 flex-row-reverse space-y-2">
|
||||
<div className="flex items-end justify-end gap-x-4">
|
||||
<QRCodeSVG
|
||||
value={`${WEBAPP_BASE_URL}/documents/${documentId}`}
|
||||
size={100}
|
||||
bgColor="#ffffff"
|
||||
fgColor="#111827"
|
||||
level="H"
|
||||
imageSettings={{
|
||||
src: '/static/icon.svg',
|
||||
height: 32,
|
||||
width: 32,
|
||||
excavate: true,
|
||||
<div
|
||||
className="flex h-36 justify-center"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: renderSVG(`${WEBAPP_BASE_URL}/documents/${documentId}`),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="my-8 flex-row-reverse">
|
||||
<div className="flex items-end justify-end gap-x-4">
|
||||
<p className="flex-shrink-0 text-sm font-medium print:text-xs">
|
||||
{_(msg`Signing certificate provided by`)}:
|
||||
|
||||
Reference in New Issue
Block a user