Skip to content

Commit

Permalink
remove audios
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Parra committed Feb 22, 2024
1 parent f584ab8 commit f9ef46a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/PomodoroActions.jsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
import { Button, Flex } from "@chakra-ui/react";
import { FaPause, FaPlay, FaUndoAlt } from "react-icons/fa";

import useAudio from "../hooks/useAudio";
import useTimer from "../hooks/useTimer";

function PomodoroActions() {
const { handleStart, handleStop, handleRestart } = useTimer();
const { toggle } = useAudio("/click.wav");

const handleClickStart = () => {
toggle();
handleStart();
};

const handleClickRestart = () => {
toggle();
handleRestart();
};

const handleClickStop = () => {
toggle();
handleStop();
};

Expand Down

0 comments on commit f9ef46a

Please sign in to comment.