Коммит 0ff1e8d2 создал по автору fourdim's avatar fourdim
Просмотр файлов

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

This will fix the breaking change introduced in
https://github.com/toeverything/blocksuite/commit/da781df4732a2fbcc1bd82d823cb1390918ada0b
This should be merged after the next BlockSuite bump.
владелец dce3b59c
...@@ -42,11 +42,11 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => { ...@@ -42,11 +42,11 @@ export const usePageHelper = (blockSuiteWorkspace: BlockSuiteWorkspace) => {
const { showImportModal } = await import('@blocksuite/blocks'); const { showImportModal } = await import('@blocksuite/blocks');
const onSuccess = ( const onSuccess = (
pageIds: string[], pageIds: string[],
options: { isWorkspaceFile: boolean } options: { isWorkspaceFile: boolean; importedCount: number }
) => { ) => {
toast( toast(
`Successfully imported ${pageIds.length} Page${ `Successfully imported ${options.importedCount} Page${
pageIds.length > 1 ? 's' : '' options.importedCount > 1 ? 's' : ''
}.` }.`
); );
if (options.isWorkspaceFile) { if (options.isWorkspaceFile) {
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать