diff --git a/README.md b/README.md index 5436151..bf6e51d 100644 --- a/README.md +++ b/README.md @@ -224,9 +224,9 @@ Below is an overview of the main folders and files in this template: | ├── constants/ │ │ └── DefaultPluginConfig.ts - Constants for plugin configurations. │ ├── core/ -│ │ └── RcbPlugin.tsx - Contains core logic for the plugin (plugin hook). +│ │ └── useRcbPlugin.ts - Contains core logic for the plugin (plugin hook). | ├── factory/ -│ │ └── RcbPlugin.tsx - Contains hook factory that prepares and creates the plugin hook. +│ │ └── RcbPluginFactory.ts - Contains hook factory that prepares and creates the plugin hook. | ├── types/ │ │ └── PluginConfig.ts - Contains type definition for plugin configurations. │ ├── App.tsx - For initializing and testing the plugin. diff --git a/src/factory/RcbPluginFactory.ts b/src/factory/RcbPluginFactory.ts index fb5535a..a895824 100644 --- a/src/factory/RcbPluginFactory.ts +++ b/src/factory/RcbPluginFactory.ts @@ -6,11 +6,7 @@ import { PluginConfig } from "../types/PluginConfig"; * * @param pluginConfig configurations for the plugin */ -const RcbPluginFactory = ({ - pluginConfig, -}: { - pluginConfig?: PluginConfig; -} = {}) => { +const RcbPluginFactory = (pluginConfig?: PluginConfig) => { // any custom logic to be ran before hook initialization can be done here // prepares and returns the plugin hook without calling it, because the