mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: Reduce code duplication by letting the page component adding the header and taking care of the page title
This commit is contained in:
@@ -2,20 +2,17 @@
|
||||
|
||||
exports[`Render should render component 1`] = `
|
||||
<Page
|
||||
title="Configuration: Plugins"
|
||||
>
|
||||
<PageHeader
|
||||
model={
|
||||
Object {
|
||||
"main": Object {
|
||||
"text": "Configuration",
|
||||
},
|
||||
"node": Object {
|
||||
"text": "Plugins",
|
||||
},
|
||||
}
|
||||
navModel={
|
||||
Object {
|
||||
"main": Object {
|
||||
"text": "Configuration",
|
||||
},
|
||||
"node": Object {
|
||||
"text": "Plugins",
|
||||
},
|
||||
}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<PageContents
|
||||
isLoading={true}
|
||||
>
|
||||
@@ -37,20 +34,17 @@ exports[`Render should render component 1`] = `
|
||||
|
||||
exports[`Render should render list 1`] = `
|
||||
<Page
|
||||
title="Configuration: Plugins"
|
||||
>
|
||||
<PageHeader
|
||||
model={
|
||||
Object {
|
||||
"main": Object {
|
||||
"text": "Configuration",
|
||||
},
|
||||
"node": Object {
|
||||
"text": "Plugins",
|
||||
},
|
||||
}
|
||||
navModel={
|
||||
Object {
|
||||
"main": Object {
|
||||
"text": "Configuration",
|
||||
},
|
||||
"node": Object {
|
||||
"text": "Plugins",
|
||||
},
|
||||
}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<PageContents
|
||||
isLoading={false}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user