Skip to content

Commit

Permalink
fix: 정답 모달 > 공유 링크 복사 성공 시 보이는 텍스트 지속 시간 2초 > 1초
Browse files Browse the repository at this point in the history
[#2]
  • Loading branch information
YuHyun-P committed Dec 4, 2023
1 parent da2c775 commit 7abff5e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import * as styles from "./SolvedModal.css";

const VISIBLE = "visible";

const COPY_SUCCESS_DURATION = 1000;

interface SolvedModalProps {
link: string;
lastQuiz: boolean;
Expand Down Expand Up @@ -37,7 +39,7 @@ export function SolvedModal({

setTimeout(() => {
copyButtonRef.current?.classList.remove(VISIBLE);
}, 2000);
}, COPY_SUCCESS_DURATION);
onCopy?.(link);
} catch (error) {
toast.error("링크 복사를 실패했습니다. 잠시 후 다시 시도해 주세요.");
Expand Down

0 comments on commit 7abff5e

Please sign in to comment.