Skip to content

Commit

Permalink
fixed Card quick redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kholmogorov27 committed Mar 10, 2023
1 parent bf92e7d commit 2b3c1fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Card/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Card({ active=false, visibility=true, icon, bgColor, textColor, hotKey,
style={styles?.logo?.instant}
animate={styles?.logo?.animate}
transition={styles?.logo?.transition}>
{getIcon(icon, textColor)}
{ getIcon(icon, textColor) }
</motion.div>
<motion.div
ref={plateRef}
Expand Down Expand Up @@ -141,7 +141,10 @@ function Card({ active=false, visibility=true, icon, bgColor, textColor, hotKey,
}
})
})
window.cardRedirectAnimationEnd?.()
setTimeout(() => {
console.log('tr')
window.cardRedirectAnimationEnd?.()
}, 1000 * Math.max(PLATE_TRANSITION_DURATION, LOGO_TRANSITION_DELAY + LOGO_TRANSITION_DURATION))
}
}
}
Expand Down

0 comments on commit 2b3c1fe

Please sign in to comment.