mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
style: remove layout animation
This commit is contained in:
parent
efd6f9941d
commit
ef952d0a03
@ -1,6 +1,5 @@
|
||||
import { useEffect } from 'react';
|
||||
import { BiPause, BiPlay } from 'react-icons/bi/index';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
import { useSoundStore } from '@/store';
|
||||
import { useSnackbar } from '@/contexts/snackbar';
|
||||
@ -27,10 +26,9 @@ export function PlayButton() {
|
||||
}, [isPlaying, pause, noSelected]);
|
||||
|
||||
return (
|
||||
<motion.button
|
||||
<button
|
||||
aria-disabled={noSelected}
|
||||
className={cn(styles.playButton, noSelected && styles.disabled)}
|
||||
layout
|
||||
onClick={handleClick}
|
||||
>
|
||||
{isPlaying ? (
|
||||
@ -48,6 +46,6 @@ export function PlayButton() {
|
||||
Play
|
||||
</>
|
||||
)}
|
||||
</motion.button>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
@ -1,5 +1,3 @@
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
import { Sounds } from '@/components/sounds';
|
||||
|
||||
import styles from './category.module.css';
|
||||
@ -18,7 +16,7 @@ export function Category({
|
||||
title,
|
||||
}: CategoryProps) {
|
||||
return (
|
||||
<motion.div className={styles.category}>
|
||||
<div className={styles.category}>
|
||||
<div className={styles.iconContainer}>
|
||||
<div className={styles.tail} />
|
||||
<div className={styles.icon}>{icon}</div>
|
||||
@ -27,6 +25,6 @@ export function Category({
|
||||
<h2 className={styles.title}>{title}</h2>
|
||||
|
||||
<Sounds functional={functional} id={id} sounds={sounds} />
|
||||
</motion.div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user