mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: New react container route for solo panels that supports both angular and react panels
This commit is contained in:
@@ -18,6 +18,8 @@ function WrapInProvider(store, Component, props) {
|
||||
export function reactContainer(
|
||||
$route,
|
||||
$location,
|
||||
$injector,
|
||||
$rootScope,
|
||||
contextSrv: ContextSrv
|
||||
) {
|
||||
return {
|
||||
@@ -38,7 +40,11 @@ export function reactContainer(
|
||||
component = component.default;
|
||||
}
|
||||
|
||||
const props = { };
|
||||
const props = {
|
||||
$injector: $injector,
|
||||
$rootScope: $rootScope,
|
||||
$scope: scope,
|
||||
};
|
||||
|
||||
ReactDOM.render(WrapInProvider(store, component, props), elem[0]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user