mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 13:37:52 +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;
|
|
}
|