Skip to content

Commit

Permalink
Hide AppLayout header if no slot defined in Page component (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbeauvais committed Jan 25, 2021
1 parent 523399f commit 49a2949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/inertia/resources/js/Layouts/AppLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
</nav>

<!-- Page Heading -->
<header class="bg-white shadow">
<header class="bg-white shadow" v-if="$slots.header">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<slot name="header"></slot>
</div>
Expand Down

0 comments on commit 49a2949

Please sign in to comment.