Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix light mode bug (#22909)

Francesco Sansalvadore76dc95e4cbc9
diff --git a/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx b/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx
index 76a1b6d418d..12d88ecfcaf 100644
--- a/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx
+++ b/apps/www/components/LaunchWeek/11/Releases/components/DaySection.tsx
@@ -1,4 +1,4 @@
-import React from 'react'
+import React, { useEffect, useState } from 'react'
import Link from 'next/link'
import Image from 'next/image'
import { ArrowRightIcon } from '@heroicons/react/outline'
@@ -14,6 +14,14 @@ const DaySection = ({ day, className }: { day: WeekDayProps; className?: string
const isMobile = useBreakpoint(639)
const cssGroup = 'group/d' + day.d
+ const [isMounted, setMounted] = useState(false)
+
+ useEffect(() => {
+ setMounted(true)
+ }, [])
+
+ if (!isMounted) return null
+
return (
<section
id={day.id}