We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf7b636 commit 8d337c0Copy full SHA for 8d337c0
1 file changed
components/Calendar.tsx
@@ -24,6 +24,10 @@ export default function Calendar({ events }: CalendarProps) {
24
const groupedEvents: Record<string, Event[]> = {};
25
26
sortedEvents.forEach((event) => {
27
+ if (new Date(event.date).getTime() - new Date().getTime() < 0) {
28
+ return;
29
+ }
30
+
31
const d = new Date(event.date);
32
const monthYear = new Intl.DateTimeFormat('pt-BR', {
33
month: 'long',
0 commit comments