Hide modal footer when empty, changed slot names for good code practice

This commit is contained in:
2024-06-09 22:32:36 +02:00
parent daa469d5e5
commit c8e5daf6cf
2 changed files with 7 additions and 10 deletions

View File

@ -34,11 +34,11 @@
</div>
<Modal :isModalOpen="isModalOpen" @modal:close="isModalOpen = false">
<template #modal-header>
<template #modalHeader>
<h3 class="modal-title">Create your character</h3>
</template>
<template #modal-body>
<template #modalBody>
<form method="post" @submit.prevent="create" class="modal-form">
<div class="form-fields">
<label for="name">Name</label>
@ -50,10 +50,6 @@
</form>
<button class="btn-cyan" @click="isModalOpen = false">CANCEL</button>
</template>
<template #modal-footer>
<button class="btn-cyan">Test</button>
</template>
</Modal>
</template>