diff --git a/package-lock.json b/package-lock.json index 10b9b04e..59904b1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "react-icons": "^5.2.1", "react-input-mask": "^2.0.4", "react-number-format": "^5.4.0", + "react-qr-code": "^2.0.15", "react-router-dom": "^6.23.1", "vitest-sonar-reporter": "^2.0.0" }, @@ -4747,6 +4748,7 @@ "version": "2.5.2", "resolved": "https://registry.npmjs.org/jspdf/-/jspdf-2.5.2.tgz", "integrity": "sha512-myeX9c+p7znDWPk0eTrujCzNjT+CXdXyk7YmJq5nD5V7uLLKmSXnlQ/Jn/kuo3X09Op70Apm0rQSnFWyGK8uEQ==", + "license": "MIT", "dependencies": { "@babel/runtime": "^7.23.2", "atob": "^2.1.2", @@ -5467,6 +5469,12 @@ "node": ">=6" } }, + "node_modules/qr.js": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/qr.js/-/qr.js-0.0.0.tgz", + "integrity": "sha512-c4iYnWb+k2E+vYpRimHqSu575b1/wKl4XFeJGpFmrJQz5I88v9aY2czh7s0w36srfCM1sXgC/xpoJz5dJfq+OQ==", + "license": "MIT" + }, "node_modules/querystringify": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", @@ -5572,6 +5580,19 @@ "react-dom": "^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/react-qr-code": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/react-qr-code/-/react-qr-code-2.0.15.tgz", + "integrity": "sha512-MkZcjEXqVKqXEIMVE0mbcGgDpkfSdd8zhuzXEl9QzYeNcw8Hq2oVIzDLWuZN2PQBwM5PWjc2S31K8Q1UbcFMfw==", + "license": "MIT", + "dependencies": { + "prop-types": "^15.8.1", + "qr.js": "0.0.0" + }, + "peerDependencies": { + "react": "*" + } + }, "node_modules/react-refresh": { "version": "0.14.2", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz", diff --git a/package.json b/package.json index 7af1d7b5..806b6d72 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "react-icons": "^5.2.1", "react-input-mask": "^2.0.4", "react-number-format": "^5.4.0", + "react-qr-code": "^2.0.15", "react-router-dom": "^6.23.1", "vitest-sonar-reporter": "^2.0.0" }, diff --git a/src/Components/SideBar/index.jsx b/src/Components/SideBar/index.jsx index 134a83a7..f2b15669 100644 --- a/src/Components/SideBar/index.jsx +++ b/src/Components/SideBar/index.jsx @@ -105,7 +105,25 @@ export default function SideBar({ fullHeight = true }) { navigate("/carteirinha"); setIsSideBarOpen(false); }} - /> + />, +