Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update login page to conditionally render "Forgot password?" link based on IS_CLOUD variable

Bill Yangd5aef6c36527
diff --git a/client/src/app/login/page.tsx b/client/src/app/login/page.tsx
index 72f323f93..d7c3e65e3 100644
--- a/client/src/app/login/page.tsx
+++ b/client/src/app/login/page.tsx
@@ -106,9 +106,11 @@ export default function Page() {
value={password}
onChange={e => setPassword(e.target.value)}
rightElement={
- <Link href="/reset-password" className="text-xs text-muted-foreground hover:text-primary">
- Forgot password?
- </Link>
+ IS_CLOUD && (
+ <Link href="/reset-password" className="text-xs text-muted-foreground hover:text-primary">
+ Forgot password?
+ </Link>
+ )
}
/>