2021-11-02 19:47:54 +01:00
|
|
|
<template>
|
|
|
|
<div class="events-wrapper">
|
|
|
|
<event-minimalist-card
|
|
|
|
v-for="event in events"
|
|
|
|
:key="event.id"
|
|
|
|
:event="event"
|
|
|
|
:isCurrentActorMember="isCurrentActorMember"
|
|
|
|
:showOrganizer="showOrganizer"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2022-07-12 10:55:28 +02:00
|
|
|
<script lang="ts" setup>
|
2021-11-02 19:47:54 +01:00
|
|
|
import { IEvent } from "@/types/event.model";
|
|
|
|
import EventMinimalistCard from "./EventMinimalistCard.vue";
|
|
|
|
|
2022-07-12 10:55:28 +02:00
|
|
|
withDefaults(
|
|
|
|
defineProps<{
|
|
|
|
events: IEvent[];
|
|
|
|
isCurrentActorMember?: boolean;
|
|
|
|
showOrganizer?: boolean;
|
|
|
|
}>(),
|
|
|
|
{
|
|
|
|
isCurrentActorMember: false,
|
|
|
|
showOrganizer: false,
|
|
|
|
}
|
|
|
|
);
|
2021-11-02 19:47:54 +01:00
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.events-wrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-gap: 20px;
|
|
|
|
grid-template: 1fr;
|
|
|
|
}
|
|
|
|
</style>
|