Skip to content

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

chore: remove lw7 unused local storage

Francesco Sansalvadoreb0bd8f121511
diff --git a/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx b/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx
index 3eeb644ca6a..52e21d71abe 100644
--- a/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx
+++ b/apps/www/components/LaunchWeek/Ticket/TicketContainer.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useState } from 'react'
+import { useState } from 'react'
import { PageState, ConfDataContext, UserData } from './hooks/use-conf-data'
import Ticket from './ActualTicket'
import Form from './form'
@@ -22,10 +22,6 @@ export default function Conf({
const [userData, setUserData] = useState<UserData>(defaultUserData)
const [pageState, setPageState] = useState<PageState>(defaultPageState)
- useEffect(() => {
- localStorage.setItem('isGolden', !!userData?.golden ? 'true' : 'false')
- }, [userData])
-
return (
<ConfDataContext.Provider
value={{
diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsx
index 1bf1f307e1a..8e12bacdf8e 100644
--- a/apps/www/pages/launch-week/index.tsx
+++ b/apps/www/pages/launch-week/index.tsx
@@ -39,7 +39,6 @@ export default function TicketHome({ users }: Props) {
const { query } = useRouter()
const [supabase, setSupabase] = useState<SupabaseClient | null>(null)
const [session, setSession] = useState<Session | null>(null)
- const [isGolden, setIsGolden] = useState(false)
const { isDarkMode } = useTheme()
const TITLE = 'Supabase LaunchWeek 7'
@@ -83,10 +82,6 @@ export default function TicketHome({ users }: Props) {
useEffect(() => {
document.body.className = '!dark bg-[#1C1C1C]'
- if (typeof window !== 'undefined') {
- setIsGolden(localStorage?.getItem('isGolden') === 'true' ?? false)
- }
-
return () => {
document.body.className = isDarkMode ? 'dark' : 'light'
}
@@ -129,9 +124,6 @@ export default function TicketHome({ users }: Props) {
</SectionContainer>
<LW7BgGraphic />
</div>
- <div
- className={['bg-lw7-gradient absolute inset-0 z-0', isGolden && 'gold'].join(' ')}
- />
</div>
<div className="relative !w-full max-w-[100vw] !px-4 sm:max-w-xl md:max-w-4xl lg:max-w-7xl -mt-48 md:mt-[-460px] z-20 flex flex-col justify-around items-center !py-4 md:!py-8 gap-2 md:gap-4 !mx-auto">