fix the booking and contract
Build & Push / Pipeline Tests (push) Failing after 1m31s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Successful in 55s
Test / API Unit Tests (push) Successful in 1m8s
Test / Homepage Unit Tests (push) Successful in 47s
Test / Carplace Unit Tests (push) Successful in 44s
Test / Admin Unit Tests (push) Successful in 43s
Test / Dashboard Unit Tests (push) Failing after 46s
Test / API Integration Tests (push) Successful in 1m7s

This commit is contained in:
root
2026-07-27 23:04:26 -04:00
parent 8046a1d447
commit 5649ab02c7
40 changed files with 1699 additions and 1066 deletions
@@ -6,6 +6,7 @@ import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { apiFetch } from "@/lib/api";
import PublicShell from "@/components/layout/PublicShell";
import { useDashboardI18n } from "@/components/I18nProvider";
import { buildHomepageSignInPath } from "@/lib/dashboardPaths";
import { websiteUrl } from "@/lib/urls";
const DASHBOARD_LOGO_SRC = "/dashboard/rentaldrivego.png";
@@ -16,17 +17,17 @@ function notifyParent(message: Record<string, unknown>) {
}
function withAuthQuery(
path: string,
params: { embedded: boolean; language: "en" | "fr" | "ar"; theme: string },
) {
const search = new URLSearchParams({
lang: params.language,
const href = buildHomepageSignInPath(undefined, {
locale: params.language,
theme: params.theme,
});
const url = new URL(href, "http://localhost");
if (params.embedded) search.set("embedded", "1");
if (params.embedded) url.searchParams.set("embedded", "1");
return `${path}?${search.toString()}`;
return `${url.pathname}${url.search}`;
}
export default function SignUpForm({
@@ -234,7 +235,7 @@ export default function SignUpForm({
},
}[preferredLanguage];
const signInHref = withAuthQuery("/sign-in", {
const signInHref = withAuthQuery({
embedded,
language: preferredLanguage,
theme,