adding flagship redirect

This commit is contained in:
Sofia Egan 2026-01-12 20:11:41 -05:00
parent 4f5d6b2895
commit 9b7fdd8582
No known key found for this signature in database
GPG key ID: 37D94108F2183D86

View file

@ -56,6 +56,11 @@ function App() {
const emailRef = useRef<HTMLInputElement>(null);
useEffect(() => {
if (window.location.pathname === '/flagship') {
window.location.href = 'https://flagship.campfire.hackclub.com';
return;
}
document.addEventListener("scroll", () => {
setScrollY(window.scrollY);
});