refactor: replace state setter functions for consistency across components (#5275)

This commit is contained in:
白熱
2025-05-26 22:38:26 +08:00
committed by GitHub
parent d069632df8
commit bd9fd856f8
47 changed files with 445 additions and 562 deletions
@@ -112,9 +112,10 @@ class ImportCSVButtonPlugin extends Plugin {
* The plugin should add its own module to the dependency injection system at this lifecycle.
* It is not recommended to initialize the internal module of the plugin outside this lifecycle.
*/
// eslint-disable-next-line max-lines-per-function
override onStarting() {
// register icon component
this.componentManager.register('FolderSingle', FolderSingle);
this.componentManager.register('FolderSingle2', FolderSingle);
const buttonId = 'import-csv-button';
@@ -205,7 +206,7 @@ class ImportCSVButtonPlugin extends Plugin {
id: buttonId,
title: 'Import CSV',
tooltip: 'Import CSV',
icon: 'FolderSingle', // icon name
icon: 'FolderSingle2', // icon name
type: MenuItemType.BUTTON,
});