Commit 9bed36f5 authored by Chunchi Che's avatar Chunchi Che

temporarily remove effect on SpecialButton

parent aa72124d
Pipeline #27217 passed with stages
in 5 minutes and 30 seconds
import classNames from "classnames";
import { AudioActionType, usePlayEffect } from "@/infra/audio";
import styles from "./index.module.scss";
// TODO: SpecialButton能不能做个Loading?
......@@ -10,12 +8,15 @@ export const SpecialButton: React.FC<
disabled?: boolean;
}
> = ({ children, className, disabled, ...rest }) => {
// 这里的音效有滞后,暂时先注释掉,后面再来修复这个问题
/*
const [effectRef] = usePlayEffect<HTMLSpanElement>(
AudioActionType.SOUND_BUTTON,
);
*/
return (
<span
ref={effectRef}
// ref={effectRef}
className={classNames(styles["special-btn"], className, {
[styles.disabled]: disabled,
})}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment