feat: entity dialog extract out

This commit is contained in:
2025-05-07 10:31:16 +01:00
parent 7d1498c3eb
commit ac4fd30b0a
5 changed files with 45 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ type Props = {
export const ItemModal = (props: Props) => {
return (
<div class="fixed inset-2 rounded-2xl p-4 bg-white border border-neutral-300">
<div class="fixed z-10 inset-2 rounded-2xl p-4 bg-white border border-neutral-300">
<div class="flex justify-between">
<h1 class="text-2xl font-bold">{props.item.data.Name}</h1>
<button type="button" onClick={props.onClose}>

View File

@@ -18,7 +18,7 @@ export const SearchCardEvent = ({ item }: Props) => {
{data.Name.length > 0 ? data.Name : "Unknown 🐞"}
</p>
<p class="text-xs text-neutral-700">
Organized by {data.Organizer?.Name ?? "unknown"} on{" "}
On{" "}
{data.StartDateTime
? new Date(data.StartDateTime).toLocaleDateString("en-US", {
month: "long",