TODO: * redirect to /markets/:id * redirect already works but page does not exist * make sure invoice modal is closed on redirect * add button to close invoice * validate end date
22 lines
425 B
Plaintext
22 lines
425 B
Plaintext
package components
|
|
|
|
templ Modal(component templ.Component) {
|
|
if component != nil {
|
|
<div
|
|
id="modal"
|
|
class="fixed left-0 top-0 w-screen h-screen"
|
|
>
|
|
<div
|
|
class="fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
|
|
>
|
|
<!-- TODO: add background -->
|
|
<div class="flex justify-center p-3 w-screen">
|
|
@component
|
|
</div>
|
|
</div>
|
|
</div>
|
|
} else {
|
|
<div id="modal" class="hidden"></div>
|
|
}
|
|
}
|