Skip to content

Commit

Permalink
perf: enhance QR code clarity using QRCodeSVG (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfdem committed Sep 24, 2024
1 parent ebfe081 commit e5e93a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@chat-e2ee/service": "file:../service",
"qrcode.react": "^3.1.0",
"qrcode.react": "^4.0.1",
"react": "^16.13.1",
"react-bootstrap": "^1.5.2",
"react-dom": "^16.13.1",
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/LinkDisplay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FiLink, FiCopy, FiExternalLink, FiArrowDown, FiArrowUp } from "react-ic
import styles from "./Style.module.css";
import { ThemeContext } from "../../ThemeContext";
import { LinkObjType } from "@chat-e2ee/service";
import QRCode from "qrcode.react";
import { QRCodeSVG } from "qrcode.react";

const LinkDisplay: React.FC<{ content: LinkObjType }> = ({ content }) => {
const chatLink =
Expand Down Expand Up @@ -80,7 +80,7 @@ const LinkDisplay: React.FC<{ content: LinkObjType }> = ({ content }) => {
</div>
{showQR && (
<div className={styles.qrCodeContainer}>
<QRCode value={chatLink} size={128} />
<QRCodeSVG value={chatLink} size={128} />
</div>
)}
</div>
Expand Down

0 comments on commit e5e93a4

Please sign in to comment.