Skip to content

Commit 342691b

Browse files
committed
Add tf
1 parent d1493e3 commit 342691b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/app/secret/page.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import TestFlightGate from "@/components/TestFlightGate";
2+
3+
export const metadata = {
4+
title: "Join TestFlight | iFly",
5+
description: "Access the iFly TestFlight build.",
6+
robots: {
7+
index: false,
8+
follow: false,
9+
},
10+
};
11+
12+
export default function SecretTestFlightPage() {
13+
return <TestFlightGate testflightUrl="https://testflight.apple.com/join/9mbKzrZH" />;
14+
}

src/components/TestFlightGate.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ declare global {
1010
}
1111
}
1212

13-
const TESTFLIGHT_URL = "https://testflight.apple.com/join/9ZEfnyMP";
13+
const DEFAULT_TESTFLIGHT_URL = "https://testflight.apple.com/join/9ZEfnyMP";
1414
const TWITTER_URL = "https://x.com/provenanceapp";
1515
const STORAGE_KEY = "ifly_testflight_gate_passed";
1616

17-
export default function TestFlightGate() {
17+
interface TestFlightGateProps {
18+
testflightUrl?: string;
19+
}
20+
21+
export default function TestFlightGate({ testflightUrl }: TestFlightGateProps = {}) {
22+
const TESTFLIGHT_URL = testflightUrl || DEFAULT_TESTFLIGHT_URL;
1823
const [gatePassed, setGatePassed] = useState<boolean>(false);
1924
const [checking, setChecking] = useState<boolean>(true);
2025

0 commit comments

Comments
 (0)