Merged in fix/SW-3381-move-loginbutton-to-design-syste (pull request #2780)
fix(SW-3381): Fixed login redirect URL * fix(SW-3381): Fixed login redirect URL Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -43,7 +43,7 @@ export function MainMenu({
|
|||||||
const lang = useLang()
|
const lang = useLang()
|
||||||
const pathname = usePathname()
|
const pathname = usePathname()
|
||||||
const baseUrl = env.NEXT_PUBLIC_PUBLIC_URL || "https://www.scandichotels.com"
|
const baseUrl = env.NEXT_PUBLIC_PUBLIC_URL || "https://www.scandichotels.com"
|
||||||
const loginPathname = useLazyPathname()
|
const loginPathname = useLazyPathname({ includeSearchParams: true })
|
||||||
|
|
||||||
const isThreeStaticPagesPathnames = [
|
const isThreeStaticPagesPathnames = [
|
||||||
"/de/sponsoring",
|
"/de/sponsoring",
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import styles from "./myPagesMenuWrapper.module.css"
|
|||||||
export default function MyPagesMenuWrapper() {
|
export default function MyPagesMenuWrapper() {
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const lang = useLang()
|
const lang = useLang()
|
||||||
const loginPathname = useLazyPathname()
|
const loginPathname = useLazyPathname({ includeSearchParams: true })
|
||||||
|
|
||||||
const { data: session } = useSession()
|
const { data: session } = useSession()
|
||||||
const isUserLoggedIn = isValidClientSession(session)
|
const isUserLoggedIn = isValidClientSession(session)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function JoinScandicFriendsCard({
|
|||||||
}: JoinScandicFriendsCardProps) {
|
}: JoinScandicFriendsCardProps) {
|
||||||
const lang = useLang()
|
const lang = useLang()
|
||||||
const intl = useIntl()
|
const intl = useIntl()
|
||||||
const loginPathname = useLazyPathname()
|
const loginPathname = useLazyPathname({ includeSearchParams: true })
|
||||||
const {
|
const {
|
||||||
room,
|
room,
|
||||||
actions: { updateJoin },
|
actions: { updateJoin },
|
||||||
|
|||||||
Reference in New Issue
Block a user