Skip to content

Commit

Permalink
Merge pull request #3 from wscullen/1-FixBluetoothControls
Browse files Browse the repository at this point in the history
Fix tsc errors
  • Loading branch information
wscullen authored Aug 31, 2024
2 parents 81d6b4f + 874a6e4 commit 3f6cbb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
2 changes: 0 additions & 2 deletions src/components/BluetoothSettingsPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
Settings2,
Bluetooth,
BluetoothConnected,
BluetoothOff,
BluetoothSearching,
} from "lucide-react";
import { useState, useCallback, useMemo } from "react";
Expand Down
24 changes: 2 additions & 22 deletions src/components/SettingsPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import {
Settings2,
Bluetooth,
BluetoothConnected,
BluetoothOff,
BluetoothSearching,
} from "lucide-react";
import { useState, useCallback, useMemo, useEffect, useContext } from "react";
import { Settings2 } from "lucide-react";
import { useState, useCallback, useEffect, useContext } from "react";

import { SettingsContext } from "./SettingsProvider";

Expand Down Expand Up @@ -58,20 +52,6 @@ const SettingsPanel = ({
[settings, updateSettings]
);

const handleIncomingData = useCallback(
async (data: string) => {
console.log(data);
const parsedData = JSON.parse(data);
console.log(parsedData);
if (parsedData?.reset === "true") {
handleResetScores();
return;
}
handleUpdateScores(parsedData?.b, parsedData?.a);
},
[handleUpdateScores, handleResetScores]
);

const toggleMenu = () => {
setMenuOpen(!menuOpen);
};
Expand Down

0 comments on commit 3f6cbb7

Please sign in to comment.