···8 getIsMobile
9 } from '$lib/website/context';
10 import type { ContentComponentProps } from '../../types';
11- import { CardDefinitionsByType } from '../..';
12 import type { EventData } from '../EventCard';
13 import { user } from '$lib/atproto';
14 import { qrOverlay } from '$lib/components/qr/qrOverlay.svelte';
···3031 onMount(async () => {
32 try {
33- const loaded = await CardDefinitionsByType[item.cardType]?.loadData?.([item], {
34 did,
35 handle
36 });
···86 async function refreshEvents() {
87 isRefreshing = true;
88 try {
89- const loaded = await CardDefinitionsByType[item.cardType]?.loadData?.([item], {
90 did,
91 handle
92 });
···8 getIsMobile
9 } from '$lib/website/context';
10 import type { ContentComponentProps } from '../../types';
11+ import { UpcomingEventsCardDefinition } from '.';
12 import type { EventData } from '../EventCard';
13 import { user } from '$lib/atproto';
14 import { qrOverlay } from '$lib/components/qr/qrOverlay.svelte';
···3031 onMount(async () => {
32 try {
33+ const loaded = await UpcomingEventsCardDefinition.loadData?.([item], {
34 did,
35 handle
36 });
···86 async function refreshEvents() {
87 isRefreshing = true;
88 try {
89+ const loaded = await UpcomingEventsCardDefinition.loadData?.([item], {
90 did,
91 handle
92 });
+1-1
src/lib/cards/social/UpcomingEventsCard/index.ts
···1-import { listRecords } from '$lib/atproto';
2import type { CardDefinition } from '../../types';
3import UpcomingEventsCard from './UpcomingEventsCard.svelte';
4import type { Did } from '@atcute/lexicons';
···19 minH: 3,
2021 loadData: async (_items, { did }) => {
022 const records = await listRecords({
23 did: did as Did,
24 collection: EVENT_COLLECTION,
···01import type { CardDefinition } from '../../types';
2import UpcomingEventsCard from './UpcomingEventsCard.svelte';
3import type { Did } from '@atcute/lexicons';
···18 minH: 3,
1920 loadData: async (_items, { did }) => {
21+ const { listRecords } = await import('$lib/atproto/methods');
22 const records = await listRecords({
23 did: did as Did,
24 collection: EVENT_COLLECTION,