feat: entity dialog extract out
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user