fix billing and 2fa admin
Build & Push / Pipeline Tests (push) Failing after 1m58s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Successful in 58s
Test / API Unit Tests (push) Successful in 1m9s
Test / Homepage Unit Tests (push) Successful in 46s
Test / Carplace Unit Tests (push) Successful in 43s
Test / Admin Unit Tests (push) Successful in 41s
Test / Dashboard Unit Tests (push) Successful in 45s
Test / API Integration Tests (push) Failing after 1m9s
Build & Push / Pipeline Tests (push) Failing after 1m58s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Successful in 58s
Test / API Unit Tests (push) Successful in 1m9s
Test / Homepage Unit Tests (push) Successful in 46s
Test / Carplace Unit Tests (push) Successful in 43s
Test / Admin Unit Tests (push) Successful in 41s
Test / Dashboard Unit Tests (push) Successful in 45s
Test / API Integration Tests (push) Failing after 1m9s
This commit is contained in:
@@ -49,7 +49,7 @@ export default async function LocaleHomePage({ params }: LocalePageProps) {
|
||||
const locale: Locale = localeValue;
|
||||
const mode: ThemePreference = modeValue;
|
||||
const messages = getMessages(locale);
|
||||
const content = buildHomepageContent(messages.homepage, messages.shell, locale);
|
||||
const content = buildHomepageContent(messages.homepage, messages.shell, locale, mode);
|
||||
const integrationConfig = getPublicIntegrationConfig();
|
||||
const homePath = localizedModePath('home', locale, mode);
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { PreviewRow } from '@/components/marketing/ProductPreview';
|
||||
import type { HomepageMessages, ShellMessages } from '@/lib/localization/messages';
|
||||
import type { Locale } from '@/lib/localization/config';
|
||||
import { accountCreateUrl } from '@/lib/account-urls';
|
||||
import type { ThemePreference } from '@/lib/theme/config';
|
||||
import {
|
||||
fleetBandIds,
|
||||
pricingPlanIds,
|
||||
@@ -267,6 +268,7 @@ export function buildHomepageContent(
|
||||
homepage: HomepageMessages,
|
||||
shell: ShellMessages,
|
||||
locale: Locale = 'en',
|
||||
mode: ThemePreference = 'dark',
|
||||
): HomepageContent {
|
||||
const pendingReason = shell.states.pendingBody;
|
||||
|
||||
@@ -275,7 +277,7 @@ export function buildHomepageContent(
|
||||
eyebrow: homepage.hero.eyebrow,
|
||||
title: homepage.hero.title,
|
||||
body: homepage.hero.body,
|
||||
primary: { label: homepage.hero.primary, href: accountCreateUrl(locale, 'dark') },
|
||||
primary: { label: homepage.hero.primary, href: accountCreateUrl(locale, mode) },
|
||||
secondary: { label: homepage.hero.secondary, disabledReason: pendingReason },
|
||||
preview: {
|
||||
title: homepage.preview.title,
|
||||
@@ -438,7 +440,7 @@ export function buildHomepageContent(
|
||||
eyebrow: homepage.final.eyebrow,
|
||||
title: homepage.final.title,
|
||||
body: homepage.final.body,
|
||||
primary: { label: homepage.final.primary, href: accountCreateUrl(locale, 'dark') },
|
||||
primary: { label: homepage.final.primary, href: accountCreateUrl(locale, mode) },
|
||||
secondary: { label: homepage.final.secondary, disabledReason: pendingReason },
|
||||
image: localizedImage(
|
||||
'rentaldrivego',
|
||||
|
||||
Reference in New Issue
Block a user