Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Molaryy committed Dec 17, 2023
1 parent cbe99b9 commit a3cba65
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions frontend/src/components/Form/TimerFormHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { FormEvent, useEffect, useState } from 'react';
import TimerForm from './TimerForm.tsx';
import pauseSound from '/assets/5-minutes-lofi.mp3';
import workSound from '/assets/Wakey-Wakey.mp3';
import BreakTime from '../BreakTime.tsx';

const TimerFormHandler = () => {
const [workTime, setWorkTime] = useState<string[]>(['00', '25', '00']);
Expand Down Expand Up @@ -118,16 +115,7 @@ const TimerFormHandler = () => {
isWorking={isWorkTimerRunning}
isInPause={isPauseTimerRunning}
/>
{startPauseSound ? (
<>
<BreakTime />
<audio controls src={pauseSound} autoPlay hidden />
</>
) : startWorkSound[0] && startWorkSound[1] ? (
<audio controls src={workSound} autoPlay hidden />
) : (
<></>
)}
{startPauseSound ? <></> : <></>}
</>
);
};
Expand Down

0 comments on commit a3cba65

Please sign in to comment.