Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"linkifyjs": "^4.1.3",
"marked": "14.1.0",
"plausible-tracker": "^0.3.9",
"qrcode.react": "^3.1.0",
"qrcode.react": "^4.0.1",
"query-string": "^9.1.0",
"react": "^18.3.1",
"react-autosize-textarea": "^7.1.0",
Expand Down
5 changes: 2 additions & 3 deletions src/components/SettingsDialog/ShareSession/ShareSession.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from "classnames";
import QRCode from "qrcode.react";
import {QRCodeCanvas} from "qrcode.react";
import {useTranslation} from "react-i18next";
import {useState} from "react";
import {useAppSelector} from "store";
Expand Down Expand Up @@ -31,9 +31,8 @@ export const ShareSession = () => {
<div className={classNames("share-session__container", "accent-color__planning-pink")}>
<div className="share-session__background">
{/* using an upscaled canvas instead of svg to make it a savable image */}
<QRCode
<QRCodeCanvas
value={`${window.location.origin}/board/${boardId}`}
renderAs="canvas"
size={1024}
fgColor={autoTheme === "dark" ? gray000 : navy900}
bgColor={autoTheme === "dark" ? navy900 : gray000}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Object {
<canvas
class="share-qr-code-option__qrcode"
height="1024"
role="img"
style="height: 1024px; width: 1024px;"
width="1024"
/>
Expand Down Expand Up @@ -65,6 +66,7 @@ Object {
<canvas
class="share-qr-code-option__qrcode"
height="1024"
role="img"
style="height: 1024px; width: 1024px;"
width="1024"
/>
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9488,10 +9488,10 @@ q@^1.1.2:
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==

qrcode.react@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/qrcode.react/-/qrcode.react-3.1.0.tgz#5c91ddc0340f768316fbdb8fff2765134c2aecd8"
integrity sha512-oyF+Urr3oAMUG/OiOuONL3HXM+53wvuH3mtIWQrYmsXoAq0DkvZp2RYUWFSMFtbdOpuS++9v+WAkzNVkMlNW6Q==
qrcode.react@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/qrcode.react/-/qrcode.react-4.0.1.tgz#1caf1d3f45bf1b6d9cf800cb0f0d671f6a89e68f"
integrity sha512-Lpj0tPBn561WiQ3QQWXbkx8xTtB8BZkJeMZWLJIL8iaPBCoWzW1IpCeU3gY5MDqsb0+efCvEGkl9O0naP64crA==

qs@6.10.4:
version "6.10.4"
Expand Down