File tree 5 files changed +28
-1
lines changed
5 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ # please keep this in sync with rhdh/dynamic-plugins.default.yaml
2
+ dynamicPlugins :
3
+ frontend :
4
+ red-hat-developer-hub.backstage-plugin-global-header :
5
+ mountPoints :
6
+ - mountPoint : application/header
7
+ importName : GlobalHeader
8
+ config :
9
+ layout :
10
+ position : above-main-content
Original file line number Diff line number Diff line change 52
52
"react-use" : " ^17.2.4"
53
53
},
54
54
"peerDependencies" : {
55
+ "@backstage/core-components" : " 0.15.1" ,
56
+ "@backstage/core-plugin-api" : " ^1.10.0" ,
57
+ "@backstage/plugin-search" : " 1.4.18" ,
58
+ "@backstage/plugin-search-react" : " 1.8.1" ,
59
+ "@backstage/theme" : " 0.6.0" ,
55
60
"react" : " ^16.13.1 || ^17.0.0 || ^18.0.0" ,
56
61
"react-router-dom" : " ^6.0.0"
57
62
},
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/className' ;
17
+
18
+ ClassNameGenerator . configure ( componentName => {
19
+ return componentName . startsWith ( 'v5-' )
20
+ ? componentName
21
+ : `v5-${ componentName } ` ;
22
+ } ) ;
16
23
17
24
export { globalHeaderPlugin , GlobalHeader } from './plugin' ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const GlobalHeader = globalHeaderPlugin.provide(
35
35
createComponentExtension ( {
36
36
name : 'GlobalHeader' ,
37
37
component : {
38
- lazy : ( ) => import ( './components' ) . then ( m => m . GlobalHeader ) ,
38
+ lazy : ( ) => import ( './components/GlobalHeader ' ) . then ( m => m . GlobalHeader ) ,
39
39
} ,
40
40
} ) ,
41
41
) ;
Original file line number Diff line number Diff line change @@ -10001,6 +10001,11 @@ __metadata:
10001
10001
react-router-dom: ^6.0.0
10002
10002
react-use: ^17.2.4
10003
10003
peerDependencies:
10004
+ "@backstage/core-components": 0.15.1
10005
+ "@backstage/core-plugin-api": ^1.10.0
10006
+ "@backstage/plugin-search": 1.4.18
10007
+ "@backstage/plugin-search-react": 1.8.1
10008
+ "@backstage/theme": 0.6.0
10004
10009
react: ^16.13.1 || ^17.0.0 || ^18.0.0
10005
10010
react-router-dom: ^6.0.0
10006
10011
languageName: unknown
You can’t perform that action at this time.
0 commit comments