|
@ -49,6 +49,10 @@ function HappyWave({ target, token, onFinish }: HappyWaveProps) { |
|
|
// ========================= Dots =========================
|
|
|
// ========================= Dots =========================
|
|
|
React.useEffect(() => { |
|
|
React.useEffect(() => { |
|
|
const id = raf(() => { |
|
|
const id = raf(() => { |
|
|
|
|
|
if (['-dangerous', '-error'].some((skipCls) => target.className.includes(skipCls))) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const rect = target.getBoundingClientRect(); |
|
|
const rect = target.getBoundingClientRect(); |
|
|
const { width, height } = rect; |
|
|
const { width, height } = rect; |
|
|
|
|
|
|
|
|