Skip to content

Commit

Permalink
fix: Start using the defineOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed Dec 26, 2023
1 parent 790f911 commit 1edda3d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
22 changes: 13 additions & 9 deletions resources/js/Pages/Home.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<script setup>
import HomeHeader from '@/Shared/HomeHeader.vue'
import PostCard from '@/Shared/PostCard.vue'
defineOptions({
layout: null,
});
defineProps({
posts: Object,
})
</script>

<template>
<Head title="Francisco Madeira">
<meta property="og:title" content="Francisco Madeira">
Expand All @@ -24,12 +37,3 @@
/>
</section>
</template>
<script setup>
import HomeHeader from '@/Shared/HomeHeader.vue'
import PostCard from '@/Shared/PostCard.vue'
defineProps({
posts: Object,
layout: null,
})
</script>
4 changes: 0 additions & 4 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ createInertiaApp({
page.layout = MainLayout;
}

if (page.props?.layout === null) {
page.layout = undefined;
}

return page;
},
title: title => {
Expand Down
4 changes: 0 additions & 4 deletions resources/js/ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ createInertiaApp({
page.layout = MainLayout;
}

if (page.props?.layout === null) {
page.layout = undefined;
}

return page;
},
setup({ App, props, plugin }) {
Expand Down

0 comments on commit 1edda3d

Please sign in to comment.