|
|
@ -36,7 +36,7 @@ class AsyncDebouncedQueue { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<gitActionDispatch>, appDispatcher: React.Dispatch<AppAction>, loaderDispatcher: React.Dispatch<any>, setAtivePanel: React.Dispatch<React.SetStateAction<string>>, platform: appPlatformTypes) => { |
|
|
|
export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<gitActionDispatch>, appDispatcher: React.Dispatch<AppAction>, loaderDispatcher: React.Dispatch<any>, setActivePanel: React.Dispatch<React.SetStateAction<string>>, platform: appPlatformTypes) => { |
|
|
|
plugin = viewPlugin |
|
|
|
plugin = viewPlugin |
|
|
|
gitDispatch = gitDispatcher |
|
|
|
gitDispatch = gitDispatcher |
|
|
|
loaderDispatch = loaderDispatcher |
|
|
|
loaderDispatch = loaderDispatcher |
|
|
@ -200,7 +200,7 @@ export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch<g |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
plugin.on('dgit' as any, 'openPanel', async (panel: string) => { |
|
|
|
plugin.on('dgit' as any, 'openPanel', async (panel: string) => { |
|
|
|
setAtivePanel(panel) |
|
|
|
setActivePanel(panel) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
plugin.on('dgit' as any, 'init', async () => { |
|
|
|
plugin.on('dgit' as any, 'init', async () => { |
|
|
|