← All changes
|
js/components/ImportMenu/MigrateForm/MigrateForm.tsx
+3
-5
3.10.0-beta.1
→
trunk
View file →
| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | {error.message} |
| 47 | 47 | </StatusDisplay>)} |
| 48 | 48 | |
| 49 | 49 | {0 < importedIds.length && ( |
| 50 | - // translators: %d: number of imported snippets. | |
| 50 | + // translators: %d: number of imported snippets. | |
| 51 | 51 | <StatusDisplay type="success" title={sprintf(__('%d snippets imported!', 'code-snippets'), importedIds.length)}> |
| 52 | 52 | {createInterpolateElement( |
| 53 | 53 | __('Selected snippets have been successfully imported to your <a>Code Snippets library</a>.', 'code-snippets'), |
| 54 | 54 | { |
| @@ -58,10 +58,10 @@ | ||
| 58 | 58 | )} |
| 59 | 59 | </StatusDisplay>)} |
| 60 | 60 | |
| 61 | 61 | {selectedImporter && |
| 62 | - isWorking !== MigrationStep.FetchSnippets && error?.step !== MigrationStep.FetchSnippets && | |
| 63 | - 0 === snippetSelection.availableItems.length && 0 === importedIds.length && ( | |
| 62 | + isWorking !== MigrationStep.FetchSnippets && error?.step !== MigrationStep.FetchSnippets && | |
| 63 | + 0 === snippetSelection.availableItems.length && 0 === importedIds.length && ( | |
| 64 | 64 | <ImportCard className="no-snippets-card" role="status" aria-live="polite"> |
| 65 | 65 | <div className="card-inner"> |
| 66 | 66 | <div className="card-icon" aria-hidden="true">ðŸ“</div> |
| 67 | 67 | <h4>{__('No snippets found', 'code-snippets')}</h4> |
| @@ -90,10 +90,8 @@ | ||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | return ( |
| 93 | 93 | <> |
| 94 | - <p>{__('If you are using another snippets plugin, you can import those existing snippets to your Code Snippets library.', 'code-snippets')}</p> | |
| 95 | - | |
| 96 | 94 | <ImporterSelector |
| 97 | 95 | value={selectedImporter} |
| 98 | 96 | options={importers} |
| 99 | 97 | isLoading={isWorking === MigrationStep.FetchSnippets} |