Address new linting rules (#851)

Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
Jeremy Gallant
2025-09-14 21:31:47 -04:00
committed by GitHub
co-authored by philon-
parent 37ad0ac9eb
commit aaf85943a8
16 changed files with 27 additions and 32 deletions
@@ -84,7 +84,7 @@ export const ImportDialog = ({ open, onOpenChange }: ImportDialogProps) => {
}, [importDialogInput, t]);
const apply = () => {
channelSet?.settings.map(
channelSet?.settings.forEach(
(ch: Protobuf.Channel.ChannelSettings, index: number) => {
if (importIndex[index] === -1) {
return;
@@ -140,7 +140,7 @@ export const ImportDialog = ({ open, onOpenChange }: ImportDialogProps) => {
const onSelectChange = (value: string, index: number) => {
const newImportIndex = [...importIndex];
newImportIndex[index] = Number.parseInt(value);
newImportIndex[index] = Number.parseInt(value, 10);
setImportIndex(newImportIndex);
};
@@ -43,7 +43,6 @@ export const ManagedModeDialog = ({
</DialogHeader>
<div className="flex items-center gap-2">
<Checkbox
id="managedMode"
checked={confirmState}
onChange={() => setConfirmState(!confirmState)}
name="confirmUnderstanding"
@@ -37,7 +37,7 @@ export const ShutdownDialog = ({ open, onOpenChange }: ShutdownDialogProps) => {
<Input
type="number"
value={time}
onChange={(e) => setTime(Number.parseInt(e.target.value))}
onChange={(e) => setTime(Number.parseInt(e.target.value, 10))}
suffix={t("unit.minute.plural")}
/>
<Button className="w-24" onClick={handleScheduledShutdown}>
@@ -59,7 +59,6 @@ export const UnsafeRolesDialog = ({
</DialogDescription>
<div className="flex items-center gap-2">
<Checkbox
id="routerRole"
checked={confirmState}
onChange={() => setConfirmState(!confirmState)}
name="confirmUnderstanding"