chore: Reduce code duplication by letting the page component adding the header and taking care of the page title

This commit is contained in:
Johannes Schill
2019-01-17 09:01:17 +01:00
parent 234713466e
commit 00646b80c6
13 changed files with 159 additions and 188 deletions

View File

@@ -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}
>