refactor(flow): lowercase event names (OnPaneLoad -> onPaneLoad)

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 425fc500b0
commit b12863f297
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ const useFlowStore = (preloadedState: State): Store => {
const actions = useActions(state, getters)
const hooksOn: FlowHooksOn = <any>{}
Object.entries(state.hooks).forEach(([n, h]) => {
const name = `On${n.charAt(0).toUpperCase() + n.slice(1)}`
const name = `on${n.charAt(0).toUpperCase() + n.slice(1)}`
hooksOn[<keyof FlowHooksOn>name] = h.on as any
})
actions.setState(state)