Skip to content

Commit

Permalink
Ran Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulharpal1603 committed Oct 2, 2024
1 parent bf7806e commit 9d87e05
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
38 changes: 23 additions & 15 deletions frontend/components/card/CardDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<h3 class="responsive-h3 text-left font-display">
{{ $t("components.card_details.header") }}
</h3>
<IconEdit @click="openModal('ModalEditAboutEvent')" @keydown.enter="openModal('ModalEditAboutEvent')" />
<IconEdit
@click="openModal('ModalEditAboutEvent')"
@keydown.enter="openModal('ModalEditAboutEvent')"
/>
<!-- <ModalEditAboutEvent
v-if="event"
:event="event"
Expand All @@ -21,20 +24,25 @@
</div>
<div v-if="event" class="flex-col space-y-6 py-2">
<div class="flex items-center gap-3">
<MetaTagOrganization
v-for="(o, i) in event.organizations.slice(0, 1)"
:key="i"
:organization="o"
/>
<button v-if="event.organizations.length > 1" @click="openModal('ModalOrganizationOverview')" @keydown.enter="openModal('ModalOrganizationOverview')" class="text-sm font-semibold text-black">
(+{{ event.organizations.length - 1 }} more)
</button>
<ModalOrganizationOverview
@closeModal="handleCloseModal('ModalOrganizationOverview')"
:cta="true"
:event="event"
:isOpen="modalIsOpen"
/>
<MetaTagOrganization
v-for="(o, i) in event.organizations.slice(0, 1)"
:key="i"
:organization="o"
/>
<button
v-if="event.organizations.length > 1"
@click="openModal('ModalOrganizationOverview')"
@keydown.enter="openModal('ModalOrganizationOverview')"
class="text-sm font-semibold text-black"
>
(+{{ event.organizations.length - 1 }} more)
</button>
<ModalOrganizationOverview
@closeModal="handleCloseModal('ModalOrganizationOverview')"
:cta="true"
:event="event"
:isOpen="modalIsOpen"
/>
</div>
<!-- <MetaTagAttendance
:numAttending="event.attendees ? event.attendees.length : 0"
Expand Down
9 changes: 3 additions & 6 deletions frontend/components/modal/ModalOrganizationOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
{{ $t("components.modal_organization_overview.header") }}
</p>
</DialogTitle>
<div class="mt-6 md:max-h-[50vh] md:overflow-y-auto py-2 pr-1">
<div class="mt-6 py-2 pr-1 md:max-h-[50vh] md:overflow-y-auto">
<div v-if="event" class="space-y-3">
<div
v-for="(o, i) in event.organizations"
:key="i"
class="m-1 card-style p-2"
class="card-style m-1 p-2"
>
<MetaTagOrganization
:organization="o"
/>
<MetaTagOrganization :organization="o" />
</div>
</div>
</div>
Expand All @@ -32,5 +30,4 @@ const props = defineProps<{
event?: Event;
}>();
const modalName = "ModalOrganizationOverview";
</script>

0 comments on commit 9d87e05

Please sign in to comment.