Skip to content

Commit

Permalink
Animation Modal: disable copy till the timer is on
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnejak committed May 15, 2024
1 parent 42488c4 commit 3174530
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/AnimationDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const AnimationDetailsModal: React.FC<Props> = ({
</pre>
<button
className="rounded p-2 absolute top-2 right-2 text-zinc-300 hover:bg-zinc-950 hover:text-zinc-200 focus:bg-zinc-950 focus:outline-none"
disabled={isConfigCopied}
onClick={() => {
copyToClipboard(code)
setIsConfigCopied(true)
Expand All @@ -197,6 +198,7 @@ const AnimationDetailsModal: React.FC<Props> = ({
{animationClassName}
<button
className="rounded p-2 text-zinc-300 hover:bg-zinc-950 hover:text-zinc-200 focus:bg-zinc-950 focus:outline-none"
disabled={isClassCopied}
onClick={() => {
copyToClipboard(animationClassName)
setIsClassCopied(true)
Expand Down

0 comments on commit 3174530

Please sign in to comment.