-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Home에 존재하던 기존 상태 DownloadQRCode로 분리
- Loading branch information
Showing
3 changed files
with
71 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// import React, { useEffect } from 'react' | ||
|
||
// const QRCode = () => { | ||
|
||
// const qrCode = useMemo(() => { | ||
// return new QRCodeStyling({ | ||
// ...mainDataForQRCode, | ||
// type: 'canvas', | ||
// dotsOptions: dots, | ||
// cornersSquareOptions: cornersSquare, | ||
// cornersDotOptions: cornersDot, | ||
// backgroundOptions: background, | ||
// imageOptions: { | ||
// ...imageForQRCode, | ||
// crossOrigin: 'anonymous', | ||
// }, | ||
// }); | ||
// }, [mainDataForQRCode, cornersDot, cornersSquare, dots, background, imageForQRCode]); | ||
|
||
// useEffect(() => { | ||
// qrCode.update({ | ||
// ...mainDataForQRCode, | ||
// }); | ||
// }, [qrCode, mainDataForQRCode]); | ||
// } | ||
|
||
// export default QRCode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters