Skip to content

Commit

Permalink
fix: Fix template factory parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Nov 13, 2024
1 parent 9457f25 commit d408cfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions src/factory/RcbPluginFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d408cfe

Please sign in to comment.