Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -8,19 +8,19 @@ import type { Lang } from '@scandic-hotels/common/constants/language'
|
||||
|
||||
export function LoginButton({
|
||||
lang,
|
||||
pathName,
|
||||
redirectTo,
|
||||
trackingId,
|
||||
children,
|
||||
...props
|
||||
}: PropsWithChildren<
|
||||
{
|
||||
lang: Lang
|
||||
pathName: string | null
|
||||
redirectTo: string | null
|
||||
trackingId: string
|
||||
} & Omit<LinkProps, 'href'>
|
||||
>) {
|
||||
const href = pathName
|
||||
? `${login[lang]}?redirectTo=${encodeURIComponent(pathName)}`
|
||||
const href = redirectTo
|
||||
? `${login[lang]}?redirectTo=${encodeURIComponent(redirectTo)}`
|
||||
: login[lang]
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user