Skip to content

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

Fix ForgotPasswordLayout

Joshen Lim557d55bf5d90
diff --git a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx
index 7de8e7cfaf3..0452dd01118 100644
--- a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx
+++ b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx
@@ -2,8 +2,8 @@ import { observer } from 'mobx-react-lite'
import Image from 'next/image'
import Link from 'next/link'
import { PropsWithChildren } from 'react'
-import { useStore } from 'hooks'
import { BASE_PATH } from 'lib/constants'
+import { useTheme } from 'common'
type ForgotPasswordLayoutProps = {
heading: string
@@ -19,9 +19,7 @@ const ForgotPasswordLayout = ({
showHeadings = true,
children,
}: PropsWithChildren<ForgotPasswordLayoutProps>) => {
- const {
- ui: { theme },
- } = useStore()
+ const { isDarkMode } = useTheme()
return (
<div className="flex-1 bg-scale-200 flex flex-col gap-8 lg:gap-16 xl:gap-32">
@@ -33,7 +31,7 @@ const ForgotPasswordLayout = ({
<a>
<Image
src={
- theme == 'dark'
+ isDarkMode
? `${BASE_PATH}/img/supabase-dark.svg`
: `${BASE_PATH}/img/supabase-light.svg`
}