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 classNames from "classnames";
import { AudioActionType, usePlayEffect } from "@/infra/audio";
import styles from "./index.module.scss"; import styles from "./index.module.scss";
// TODO: SpecialButton能不能做个Loading? // TODO: SpecialButton能不能做个Loading?
...@@ -10,12 +8,15 @@ export const SpecialButton: React.FC< ...@@ -10,12 +8,15 @@ export const SpecialButton: React.FC<
disabled?: boolean; disabled?: boolean;
} }
> = ({ children, className, disabled, ...rest }) => { > = ({ children, className, disabled, ...rest }) => {
// 这里的音效有滞后,暂时先注释掉,后面再来修复这个问题
/*
const [effectRef] = usePlayEffect<HTMLSpanElement>( const [effectRef] = usePlayEffect<HTMLSpanElement>(
AudioActionType.SOUND_BUTTON, AudioActionType.SOUND_BUTTON,
); );
*/
return ( return (
<span <span
ref={effectRef} // ref={effectRef}
className={classNames(styles["special-btn"], className, { className={classNames(styles["special-btn"], className, {
[styles.disabled]: disabled, [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