diff --git a/client/components/CalendarFeedManager.jsx b/client/components/CalendarFeedManager.tsx similarity index 82% rename from client/components/CalendarFeedManager.jsx rename to client/components/CalendarFeedManager.tsx index 36cc361..0c564ec 100644 --- a/client/components/CalendarFeedManager.jsx +++ b/client/components/CalendarFeedManager.tsx @@ -1,13 +1,27 @@ -import React, { useCallback, useEffect, useState } from 'react'; +import { useCallback, useEffect, useState, type ReactNode } from 'react'; import { Link } from 'react-router-dom'; import { CalendarDays, Copy, Eye, KeyRound, RefreshCw, ShieldOff, Settings2 } from 'lucide-react'; import { toast } from 'sonner'; import { api } from '@/api'; -import { cn } from '@/lib/utils'; +import { cn, errMessage } from '@/lib/utils'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; -function PlatformNote({ title, children }) { +interface CalFeed { + active?: boolean; + feed_url?: string; + last_used_at?: string | null; +} + +interface CalEvent { + uid: string; + name?: string; + due_date?: string; + cycle_type?: string; + amount?: number; +} + +function PlatformNote({ title, children }: { title: ReactNode; children: ReactNode }) { return (
{title}
Next events that will appear