File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,9 @@ Below is an overview of the main folders and files in this template:
224
224
| ├── constants/
225
225
│ │ └── DefaultPluginConfig.ts - Constants for plugin configurations.
226
226
│ ├── core/
227
- │ │ └── RcbPlugin.tsx - Contains core logic for the plugin (plugin hook).
227
+ │ │ └── useRcbPlugin.ts - Contains core logic for the plugin (plugin hook).
228
228
| ├── 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.
230
230
| ├── types/
231
231
│ │ └── PluginConfig.ts - Contains type definition for plugin configurations.
232
232
│ ├── App.tsx - For initializing and testing the plugin.
Original file line number Diff line number Diff line change @@ -6,11 +6,7 @@ import { PluginConfig } from "../types/PluginConfig";
6
6
*
7
7
* @param pluginConfig configurations for the plugin
8
8
*/
9
- const RcbPluginFactory = ( {
10
- pluginConfig,
11
- } : {
12
- pluginConfig ?: PluginConfig ;
13
- } = { } ) => {
9
+ const RcbPluginFactory = ( pluginConfig ?: PluginConfig ) => {
14
10
// any custom logic to be ran before hook initialization can be done here
15
11
16
12
// prepares and returns the plugin hook without calling it, because the
You can’t perform that action at this time.
0 commit comments