Added missing props on qrCodes test

This commit is contained in:
Alejandro Celaya
2021-08-16 17:44:11 +02:00
parent c6be8bd96f
commit 37a3a2022b
2 changed files with 28 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ const QrCodeModal = (imageDownloader: ImageDownloader, ForServerVersion: FC<Vers
svgIsSupported: supportsQrCodeSvgFormat(selectedServer),
marginIsSupported: supportsQrCodeMargin(selectedServer),
errorCorrectionIsSupported: supportsQrErrorCorrection(selectedServer),
}) as QrCodeCapabilities, [ selectedServer ]);
}), [ selectedServer ]);
const qrCodeUrl = useMemo(
() => buildQrCodeUrl(shortUrl, { size, format, margin, errorCorrection }, capabilities),
[ shortUrl, size, format, margin, errorCorrection, capabilities ],