feat: add env var for signup flow
This commit is contained in:
@@ -17,3 +17,13 @@ export const signupVerify: LangRoute = {
|
||||
da: `${signup.da}/bekraeft`,
|
||||
de: `${signup.de}/verifizieren`,
|
||||
}
|
||||
|
||||
export function isSignupPage(path: string): boolean {
|
||||
const signupPaths = [...Object.values(signup), ...Object.values(signupVerify)]
|
||||
const result = signupPaths.some((signupPath) => {
|
||||
const includes = signupPath.includes(path)
|
||||
return includes
|
||||
})
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user