mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
9f7b129c41
* fix: Button wave follow issue * test: update test case * chore: fix lint
15 lines
280 B
TypeScript
15 lines
280 B
TypeScript
import showWaveEffect from './WaveEffect';
|
|
|
|
export default function useWave(
|
|
nodeRef: React.RefObject<HTMLElement>,
|
|
className: string,
|
|
): VoidFunction {
|
|
function showWave() {
|
|
const node = nodeRef.current!;
|
|
|
|
showWaveEffect(node, className);
|
|
}
|
|
|
|
return showWave;
|
|
}
|