added sounds, updated nped config and tweaks + code quality improvements
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { useSound } from "react-sounds";
|
||||
import Card from "../UI/Card";
|
||||
import CardHeader from "../UI/CardHeader";
|
||||
|
||||
const SessionCard = () => {
|
||||
function onStart(): void {
|
||||
throw new Error("Function not implemented.");
|
||||
}
|
||||
const { play } = useSound("notification/notification");
|
||||
// function onStart(): void {
|
||||
// throw new Error("Function not implemented.");
|
||||
// }
|
||||
|
||||
return (
|
||||
<Card>
|
||||
@@ -12,7 +14,9 @@ const SessionCard = () => {
|
||||
<div className="flex flex-col gap-4">
|
||||
<button
|
||||
className="bg-[#26B170] text-white px-4 py-2 rounded hover:bg-green-700 transition w-full max-w-md"
|
||||
onClick={onStart}
|
||||
onClick={() => {
|
||||
play();
|
||||
}}
|
||||
>
|
||||
Start Session
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user