Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed May 8, 2024
1 parent b7b7c62 commit 3be7ca4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions src/app/components/bootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Bootsrap: React.FC = () => {
useRadioState
.getState()
.setTransceiverCountForStationCallsign(station, parseInt(count));
}
},
);

window.api.on(
Expand All @@ -39,16 +39,16 @@ const Bootsrap: React.FC = () => {
.addRadio(
freq,
station,
useSessionStore.getState().getStationCallsign()
useSessionStore.getState().getStationCallsign(),
);
void window.api.SetRadioGain(
useSessionStore.getState().radioGain / 100
useSessionStore.getState().radioGain / 100,
);
})
.catch((err: unknown) => {
console.error(err);
});
}
},
);

window.api.on("FrequencyRxBegin", (frequency: string) => {
Expand Down Expand Up @@ -98,7 +98,7 @@ const Bootsrap: React.FC = () => {
const frequency = parseInt(dataArr[1]);
useSessionStore.getState().setIsAtc(isAtc);
useSessionStore.getState().setFrequency(frequency);
}
},
);

window.api.on("network-disconnected", () => {
Expand Down
8 changes: 4 additions & 4 deletions src/app/components/settings-modal/settings-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const SettingsModal: React.FC<SettingsModalProps> = ({ closeModal }) => {
const [changesSaved, setChangesSaved] = useState(SaveStatus.NoChanges);
const [audioApis, setAudioApis] = useState(Array<AudioApi>);
const [audioOutputDevices, setAudioOutputDevices] = useState(
Array<AudioDevice>
Array<AudioDevice>,
);
const [audioInputDevices, setAudioInputDevices] = useState(
Array<AudioDevice>
Array<AudioDevice>,
);
const [hardwareType, setHardwareType] = useState(0);
const [config, setConfig] = useState({} as Configuration);
Expand Down Expand Up @@ -178,7 +178,7 @@ const SettingsModal: React.FC<SettingsModalProps> = ({ closeModal }) => {
};

const handleHardwareTypeChange = (
e: React.ChangeEvent<HTMLSelectElement>
e: React.ChangeEvent<HTMLSelectElement>,
) => {
setChangesSaved(SaveStatus.Saving);
const hardwareType = parseInt(e.target.value);
Expand Down Expand Up @@ -319,7 +319,7 @@ const SettingsModal: React.FC<SettingsModalProps> = ({ closeModal }) => {
className={clsx(
"btn mt-3 w-100",
!isMicTesting && "btn-info",
isMicTesting && "btn-warning"
isMicTesting && "btn-warning",
)}
onClick={handleMicTest}
disabled={
Expand Down
20 changes: 10 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const setAudioSettings = () => {
currentConfiguration.audioApi || -1,
currentConfiguration.audioInputDeviceId || "",
currentConfiguration.headsetOutputDeviceId || "",
currentConfiguration.speakerOutputDeviceId || ""
currentConfiguration.speakerOutputDeviceId || "",
);
TrackAudioAfv.SetHardwareType(currentConfiguration.hardwareType || 0);
};
Expand Down Expand Up @@ -106,7 +106,7 @@ const createWindow = (): void => {
app.on("ready", () => {
// load the configuration
currentConfiguration = JSON.parse(
store.get("configuration", "{}") as string
store.get("configuration", "{}") as string,
) as Configuration;

if (currentConfiguration.consentedToTelemetry === undefined) {
Expand Down Expand Up @@ -272,7 +272,7 @@ ipcMain.handle(
"audio-add-frequency",
(_, frequency: number, callsign: string) => {
return TrackAudioAfv.AddFrequency(frequency, callsign);
}
},
);

ipcMain.handle("audio-remove-frequency", (_, frequency: number) => {
Expand All @@ -288,17 +288,17 @@ ipcMain.handle(
tx: boolean,
xc: boolean,
onSpeaker: boolean,
crossCoupleAcross: boolean
crossCoupleAcross: boolean,
) => {
return TrackAudioAfv.SetFrequencyState(
frequency,
rx,
tx,
xc,
onSpeaker,
crossCoupleAcross
crossCoupleAcross,
);
}
},
);

ipcMain.handle("audio-get-frequency-state", (_, frequency: number) => {
Expand Down Expand Up @@ -371,15 +371,15 @@ ipcMain.handle(
type: "none" | "info" | "error" | "question" | "warning",
title: string,
message: string,
buttons: string[]
buttons: string[],
) => {
return dialog.showMessageBox(mainWindow, {
type,
title,
buttons,
message,
});
}
},
);

ipcMain.handle("get-version", () => {
Expand All @@ -394,8 +394,8 @@ TrackAudioAfv.RegisterCallback((arg: string, arg2: string, arg3: string) => {
return;
}

console.log(arg)
console.log(arg);

if (arg === AfvEventTypes.VuMeter) {
mainWindow.webContents.send("VuMeter", arg2, arg3);
}
Expand Down

0 comments on commit 3be7ca4

Please sign in to comment.