Skip to content

Commit d408cfe

Browse files
committed
fix: Fix template factory parameters
1 parent 9457f25 commit d408cfe

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ Below is an overview of the main folders and files in this template:
224224
| ├── constants/
225225
│ │ └── DefaultPluginConfig.ts - Constants for plugin configurations.
226226
│ ├── core/
227-
│ │ └── RcbPlugin.tsx - Contains core logic for the plugin (plugin hook).
227+
│ │ └── useRcbPlugin.ts - Contains core logic for the plugin (plugin hook).
228228
| ├── factory/
229-
│ │ └── RcbPlugin.tsx - Contains hook factory that prepares and creates the plugin hook.
229+
│ │ └── RcbPluginFactory.ts - Contains hook factory that prepares and creates the plugin hook.
230230
| ├── types/
231231
│ │ └── PluginConfig.ts - Contains type definition for plugin configurations.
232232
│ ├── App.tsx - For initializing and testing the plugin.

src/factory/RcbPluginFactory.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import { PluginConfig } from "../types/PluginConfig";
66
*
77
* @param pluginConfig configurations for the plugin
88
*/
9-
const RcbPluginFactory = ({
10-
pluginConfig,
11-
}: {
12-
pluginConfig?: PluginConfig;
13-
} = {}) => {
9+
const RcbPluginFactory = (pluginConfig?: PluginConfig) => {
1410
// any custom logic to be ran before hook initialization can be done here
1511

1612
// prepares and returns the plugin hook without calling it, because the

0 commit comments

Comments
 (0)