File tree 1 file changed +3
-3
lines changed
packages/scenes-app/src/home-demo
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import { Card , useStyles2 } from '@grafana/ui' ;
3
- import { useHistory } from 'react-router-dom' ;
4
3
import { prefixRoute } from '../utils/utils.routing' ;
5
4
import { ROUTES } from '../constants' ;
6
5
import { GrafanaTheme2 , PageLayoutType } from '@grafana/data' ;
7
6
import { css } from '@emotion/css' ;
8
- import { PluginPage } from '@grafana/runtime' ;
7
+ import { PluginPage , locationService } from '@grafana/runtime' ;
9
8
10
9
function getStyles ( theme : GrafanaTheme2 ) {
11
10
return {
@@ -29,9 +28,10 @@ function getStyles(theme: GrafanaTheme2) {
29
28
} ;
30
29
}
31
30
31
+ const history = locationService . getHistory ( ) ;
32
+
32
33
export const HomePage = ( ) => {
33
34
const styles = useStyles2 ( getStyles ) ;
34
- const history = useHistory ( ) ;
35
35
36
36
return (
37
37
< PluginPage layout = { PageLayoutType . Custom } >
You can’t perform that action at this time.
0 commit comments