fix: breaking function signature on showImportModal onSuceessHandler (#6011)

This will fix the breaking change introduced in
da781df473
This should be merged after the next BlockSuite bump.
This commit is contained in:
fourdim
2024-03-05 18:51:39 +00:00
parent dce3b59c52
commit 0ff1e8d2f7

View File

@@ -42,11 +42,11 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => {
const { showImportModal } = await import('@blocksuite/blocks');
const onSuccess = (
pageIds: string[],
options: { isWorkspaceFile: boolean }
options: { isWorkspaceFile: boolean; importedCount: number }
) => {
toast(
`Successfully imported ${pageIds.length} Page${
pageIds.length > 1 ? 's' : ''
`Successfully imported ${options.importedCount} Page${
options.importedCount > 1 ? 's' : ''
}.`
);
if (options.isWorkspaceFile) {