Skip to content

Commit

Permalink
hotfix/2.0.3: ajustes de dependecia do qrcode (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Guimarães authored Dec 20, 2022
1 parent 57231d3 commit fa44498
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 73 deletions.
196 changes: 152 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "base-project",
"private": true,
"version": "2.0.1",
"version": "2.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -19,7 +19,7 @@
"react-icons": "^4.7.1",
"react-leaflet": "^4.1.0",
"react-loader-spinner": "^5.3.4",
"react-qr-reader": "^3.0.0-beta-1",
"react-zxing": "^1.0.7",
"react-router-dom": "^6.4.5",
"react-toastify": "^9.1.1",
"sass": "^1.56.1"
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/getCode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function CodeProvider({ children }) {
const [code, setCode] = useState('')
const [searchParams, setSearchParams] = useSearchParams();
const [codeExists, setCodeExists] = useState(false)
const [toggle, setToggle] = useState(false)
const [active, setActive] = useState(false)


// const searchHandler = (query) => {
Expand Down Expand Up @@ -51,7 +51,7 @@ export function CodeProvider({ children }) {
checkCode()
}, [code])
return (
<CodeContext.Provider value={{ code, setCode, setSearchParams, codeExists, toggle, setToggle }}>
<CodeContext.Provider value={{ code, setCode, setSearchParams, codeExists, active, setActive }}>
{children}
</CodeContext.Provider>
)
Expand Down
Loading

0 comments on commit fa44498

Please sign in to comment.