fix(lint): resolve caption and cloud integration diagnostics

This commit is contained in:
webadderall committed 2026-09-20 20:44:10 +10:00
1 parent 5ec5d196fd
commit dd92fccf97
5 files changed
+11 -9

No files matched your search

@@ -4,8 +4,11 @@ const state = vi.hoisted(() => ({ refs: [] as { current: unknown }[], index: 0 }
vi.mock("react", () => ({
useCallback: (callback: unknown) => callback,
useEffect: () => {},
useRef: (current: unknown) =>
state.refs[state.index++] ?? (state.refs[state.index - 1] = { current }),
useRef: (current: unknown) => {
const index = state.index++;
state.refs[index] ??= { current };
return state.refs[index];
},
}));
vi.mock("@/components/ui/toast", () => ({
toast: { error: vi.fn(), info: vi.fn(), success: vi.fn() },
+1 -1
View File
@@ -188,7 +188,7 @@ function ExportState({ mode }: { mode: string }) {
<EditorExportMenu
projectTitle="Demo recording"
prepareExportForShare={async () => undefined}
onRequestShareSignIn={() => {}}
onRequestShareSignIn={() => undefined}
shareRequestNonce={0}
t={t}
exportSettings={exportSettings}