Skip to content

Commit

Permalink
Merge pull request #470 from Chaem03/feature/#349
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
Chaem03 authored Aug 6, 2024
2 parents 717f9c6 + 0189385 commit 93bc364
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pages/Share/Share.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import ClearStarPIcon1 from "@/assets/starclearPicon1.svg";
import ClearStarPIcon2 from "@/assets/starclearPicon2.svg";
import blur from "@/assets/blur.svg";
import { useParams } from "react-router-dom";

import { Loading } from "../Loading/Loading";

const SharePage = ({ onBack }) => {
Expand All @@ -34,12 +33,13 @@ const SharePage = ({ onBack }) => {
}, []);

const handleCapture = async () => {
console.log("capture check1");
setIsButtonVisible(false);
setTimeout(async () => {
const canvas = await html2canvas(captureRef.current, { useCORS: true });
await captureScreenshot(canvas);
setIsButtonVisible(true);
}, 100);
const canvas = await html2canvas(captureRef.current, { useCORS: true });
console.log("capture check2");
const data = await captureScreenshot(canvas);
console.log(data);
setIsButtonVisible(true);
};

const starData = starP && starP.data ? starP.data : null;
Expand Down

0 comments on commit 93bc364

Please sign in to comment.