Commit 6308bb13 by Jonathan Reinink

Use layout shorthand

1 parent 6f9c5f13
...@@ -41,7 +41,7 @@ import TextInput from '@/Shared/TextInput' ...@@ -41,7 +41,7 @@ import TextInput from '@/Shared/TextInput'
export default { export default {
metaInfo: { title: 'Create Contact' }, metaInfo: { title: 'Create Contact' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
LoadingButton, LoadingButton,
SelectInput, SelectInput,
......
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
title: `${this.form.first_name} ${this.form.last_name}`, title: `${this.form.first_name} ${this.form.last_name}`,
} }
}, },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
LoadingButton, LoadingButton,
SelectInput, SelectInput,
......
...@@ -73,7 +73,7 @@ import throttle from 'lodash/throttle' ...@@ -73,7 +73,7 @@ import throttle from 'lodash/throttle'
export default { export default {
metaInfo: { title: 'Contacts' }, metaInfo: { title: 'Contacts' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
Icon, Icon,
Pagination, Pagination,
......
...@@ -36,7 +36,7 @@ import TextInput from '@/Shared/TextInput' ...@@ -36,7 +36,7 @@ import TextInput from '@/Shared/TextInput'
export default { export default {
metaInfo: { title: 'Create Organization' }, metaInfo: { title: 'Create Organization' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
LoadingButton, LoadingButton,
SelectInput, SelectInput,
......
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
metaInfo() { metaInfo() {
return { title: this.form.name } return { title: this.form.name }
}, },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
Icon, Icon,
LoadingButton, LoadingButton,
......
...@@ -65,7 +65,7 @@ import throttle from 'lodash/throttle' ...@@ -65,7 +65,7 @@ import throttle from 'lodash/throttle'
export default { export default {
metaInfo: { title: 'Organizations' }, metaInfo: { title: 'Organizations' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
Icon, Icon,
Pagination, Pagination,
......
...@@ -9,6 +9,6 @@ import Layout from '@/Shared/Layout' ...@@ -9,6 +9,6 @@ import Layout from '@/Shared/Layout'
export default { export default {
metaInfo: { title: 'Reports' }, metaInfo: { title: 'Reports' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
} }
</script> </script>
...@@ -34,7 +34,7 @@ import FileInput from '@/Shared/FileInput' ...@@ -34,7 +34,7 @@ import FileInput from '@/Shared/FileInput'
export default { export default {
metaInfo: { title: 'Create User' }, metaInfo: { title: 'Create User' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
LoadingButton, LoadingButton,
SelectInput, SelectInput,
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
title: `${this.form.first_name} ${this.form.last_name}`, title: `${this.form.first_name} ${this.form.last_name}`,
} }
}, },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
LoadingButton, LoadingButton,
SelectInput, SelectInput,
......
...@@ -70,7 +70,7 @@ import throttle from 'lodash/throttle' ...@@ -70,7 +70,7 @@ import throttle from 'lodash/throttle'
export default { export default {
metaInfo: { title: 'Users' }, metaInfo: { title: 'Users' },
layout: (h, page) => h(Layout, [page]), layout: Layout,
components: { components: {
Icon, Icon,
SearchFilter, SearchFilter,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!