Skip to content

Commit

Permalink
Apply auto-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fchorney committed Apr 2, 2024
1 parent 7ff27a4 commit defa62a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ dist
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# python/pyenv
.python-version
20 changes: 4 additions & 16 deletions ui/stage/stage-test.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
import { useAtomValue, type Atom } from "jotai";
import { useEffect, useState } from "react";
import type {
SMXPanelTestData,
SMXSensorTestData,
} from "../../sdk/commands/sensor_test";
import type { SMXPanelTestData, SMXSensorTestData } from "../../sdk/commands/sensor_test";
import { requestTestData } from "../pad-coms";
import { FsrPanel } from "./fsr-panel";
import { SmxStage } from "../../sdk";
import {
StageInputs,
type EachPanel,
type PanelName,
} from "../../sdk/commands/inputs";
import { StageInputs, type EachPanel, type PanelName } from "../../sdk/commands/inputs";
import { HID_REPORT_INPUT_STATE } from "../../sdk/packet";

function useInputState(dev: HIDDevice | undefined) {
const [panelStates, setPanelStates] = useState<
EachPanel<boolean> | undefined
>();
const [panelStates, setPanelStates] = useState<EachPanel<boolean> | undefined>();
useEffect(() => {
if (!dev) return;
function handleInputReport(e: HIDInputReportEvent) {
Expand Down Expand Up @@ -67,10 +58,7 @@ export function StageTest({
return null;
}

const entries = Object.entries(testData.panels) as [
PanelName,
SMXPanelTestData
][];
const entries = Object.entries(testData.panels) as [PanelName, SMXPanelTestData][];

return (
<div className="pad">
Expand Down

0 comments on commit defa62a

Please sign in to comment.