diff --git a/package.json b/package.json index 3b1a58e..47b898a 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,9 @@ }, "rules": { "import/no-extraneous-dependencies": "off", - "no-nested-ternary": "warn", + "no-nested-ternary": "off", + "no-shadow": "off", + "react/no-array-index-key": "off", "jsx-a11y/label-has-associated-control": "warn" }, "ignorePatterns": [ diff --git a/src/renderer/common/date-picker.tsx b/src/renderer/common/date-picker.tsx index 51e4c0c..13728fc 100644 --- a/src/renderer/common/date-picker.tsx +++ b/src/renderer/common/date-picker.tsx @@ -1,3 +1,4 @@ +/* eslint-disable */ import { FC, PropsWithChildren, useRef } from "react"; import { DateFieldState, diff --git a/src/renderer/details/transcript/transcript-item.tsx b/src/renderer/details/transcript/transcript-item.tsx index b3a5144..5fe3cb4 100644 --- a/src/renderer/details/transcript/transcript-item.tsx +++ b/src/renderer/details/transcript/transcript-item.tsx @@ -110,7 +110,7 @@ export const TranscriptItem = memo<{ (idx === 0 && index === 0 && time < nextRange[0]), ) .map(([time, file]) => ({ time, file })), - [meta.screenshots, nextRange], + [index, meta.screenshots, nextRange], ); const nextItems = useMemo( diff --git a/src/renderer/history/history-item.tsx b/src/renderer/history/history-item.tsx index 4982e9f..679c118 100644 --- a/src/renderer/history/history-item.tsx +++ b/src/renderer/history/history-item.tsx @@ -85,7 +85,7 @@ export const HistoryItem: FC<{ if (name) { await historyApi.updateRecordingMeta(id, { name }); } - }, [id]); + }, [id, promptRename, recording.name]); const duration = humanizer(recording.duration || 0, { maxDecimalPoints: 0 }); diff --git a/src/renderer/settings/settings-screen.tsx b/src/renderer/settings/settings-screen.tsx index c2b7e90..39c93d4 100644 --- a/src/renderer/settings/settings-screen.tsx +++ b/src/renderer/settings/settings-screen.tsx @@ -34,7 +34,6 @@ export const SettingsScreen: FC = () => { const handleSubmit = useDebouncedCallback( () => { - console.log("SAVE", form.getValues()); mainApi.saveSettings(form.getValues()); setHasSaved((old) => { if (!old) {