chore: remove animation of spoiler
This commit is contained in:
parent
6b14d87521
commit
0afdbe3332
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ const Spoiler: React.FC<Props> = ({ content }: Props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
className={classNames("inline cursor-pointer select-none", isRevealed ? "" : "animate-pulse bg-gray-200 dark:bg-zinc-700")}
|
className={classNames("inline cursor-pointer select-none", isRevealed ? "" : "bg-gray-200 dark:bg-zinc-700")}
|
||||||
onClick={() => setIsRevealed(!isRevealed)}
|
onClick={() => setIsRevealed(!isRevealed)}
|
||||||
>
|
>
|
||||||
<span className={classNames(isRevealed ? "opacity-100" : "opacity-0")}>{content}</span>
|
<span className={classNames(isRevealed ? "opacity-100" : "opacity-0")}>{content}</span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue