chore(client): fix typecheck

This commit is contained in:
Elian Doran 2025-12-24 19:25:13 +02:00
parent 9adf24da01
commit d21127e3a7
No known key found for this signature in database
2 changed files with 13 additions and 6 deletions

View File

@ -101,7 +101,9 @@ function SingleNoteRenderer({ note, onReady }: RendererProps) {
await loadCustomCss(note);
}
load().then(() => requestAnimationFrame(() => onReady({})));
load().then(() => requestAnimationFrame(() => onReady({
type: "single-note"
})));
}, [ note ]);
return <>

View File

@ -1,10 +1,12 @@
import "./TablePrintView.css";
import { useEffect, useRef, useState } from "preact/hooks";
import { ExportModule, FormatModule, Tabulator as VanillaTabulator} from 'tabulator-tables';
import { RawHtmlBlock } from "../../react/RawHtml";
import { ViewModeProps } from "../interface";
import useData, { TableConfig } from "./data";
import { ExportModule, FormatModule, Tabulator as VanillaTabulator} from 'tabulator-tables';
import Tabulator from "./tabulator";
import { RawHtmlBlock } from "../../react/RawHtml";
import "./TablePrintView.css";
export default function TablePrintView({ note, noteIds, viewConfig, onReady }: ViewModeProps<TableConfig>) {
const tabulatorRef = useRef<VanillaTabulator>(null);
@ -13,7 +15,10 @@ export default function TablePrintView({ note, noteIds, viewConfig, onReady }: V
useEffect(() => {
if (!html) return;
onReady?.();
onReady?.({
type: "collection",
ignoredNoteIds: []
});
}, [ html ]);
return rowData && (
@ -45,5 +50,5 @@ export default function TablePrintView({ note, noteIds, viewConfig, onReady }: V
</div>
</>
)
);
}