Skip to content

Commit 1ec78e1

Browse files
authored
Update player-context.tsx
remove local storage for now
1 parent cd701f7 commit 1ec78e1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎components/player-context.tsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client"
22
import { PodcastQueryResult } from "@/sanity.types";
3-
import { useLocalStorage } from "@uidotdev/usehooks";
43
import { Dispatch, MutableRefObject, SetStateAction, createContext, useEffect, useRef, useState } from "react";
54

65
export const PlayerContext = createContext<{
@@ -63,10 +62,6 @@ export const PlayerProvider = ({ children }: { children: JSX.Element }) => {
6362
});
6463
const audioRef = useRef<HTMLAudioElement>();
6564
const [volume, setVolume] = useState(100);
66-
const [defaultVolume, saveDefaultVolume] = useLocalStorage(
67-
"codingcatdev:player:volume",
68-
100
69-
);
7065

7166
useEffect(() => {
7267
const src = podcast?.spotify?.enclosures?.at(0)?.url;

0 commit comments

Comments
 (0)