Refactor New/Edit Store modals/pages to Razor components
This commit is contained in:
13
Groceries/Components/Modal.razor
Normal file
13
Groceries/Components/Modal.razor
Normal file
@ -0,0 +1,13 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<turbo-frame id="modal" data-modal-target="frame">
|
||||
<article class="card">
|
||||
<header class="card__header row">
|
||||
<h2 class="row__fill">
|
||||
<SectionOutlet SectionName="modalTitle" />
|
||||
</h2>
|
||||
<button class="button modal__close-button" data-action="modal#close">🗙</button>
|
||||
</header>
|
||||
@Body
|
||||
</article>
|
||||
</turbo-frame>
|
Reference in New Issue
Block a user