Skip to content

Commit

Permalink
style: remove layout animation
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Dec 5, 2023
1 parent efd6f99 commit ef952d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/components/buttons/play/play.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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 ? (
Expand All @@ -48,6 +46,6 @@ export function PlayButton() {
Play
</>
)}
</motion.button>
</button>
);
}
6 changes: 2 additions & 4 deletions src/components/category/category.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { motion } from 'framer-motion';

import { Sounds } from '@/components/sounds';

import styles from './category.module.css';
Expand All @@ -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>
Expand All @@ -27,6 +25,6 @@ export function Category({
<h2 className={styles.title}>{title}</h2>

<Sounds functional={functional} id={id} sounds={sounds} />
</motion.div>
</div>
);
}

0 comments on commit ef952d0

Please sign in to comment.