diff --git a/src/App.tsx b/src/App.tsx index 8c69a06..5fef24e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,7 +22,7 @@ export default function () { /> } - path="/waitlist/:verificationType/:attestationType/:value/:context/:passed" + path="/waitlist/:verificationType/:attestationType/:value/:context/:passed/:inviteCode?" /> diff --git a/src/components/screens/WaitlistScreen.tsx b/src/components/screens/WaitlistScreen.tsx index d4d8b8d..d762a00 100644 --- a/src/components/screens/WaitlistScreen.tsx +++ b/src/components/screens/WaitlistScreen.tsx @@ -6,12 +6,20 @@ import openAppLink from 'helpers/openAppLink' export default function ({ attestationType, context, + inviteCode = '', passed, value, verificationType, }: WaitlistScreenParams) { openAppLink({ - params: { attestationType, context, passed, value, verificationType }, + params: { + attestationType, + context, + inviteCode, + passed, + value, + verificationType, + }, path: KetlPath.waitlist, }) diff --git a/src/models/WaitlistScreenParams.tsx b/src/models/WaitlistScreenParams.tsx index 65896f8..4d6b8c8 100644 --- a/src/models/WaitlistScreenParams.tsx +++ b/src/models/WaitlistScreenParams.tsx @@ -4,4 +4,5 @@ export default interface WaitlistScreenParams { context: string // 1 || 0 verificationType: string // VerificationType passed: string // 1 || 0 + inviteCode?: string }