fix bug#7
Build & Push / Build & Push Docker Image (push) Failing after 2m50s
Test / Type Check (all packages) (push) Failing after 55s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
Build & Push / Build & Push Docker Image (push) Failing after 2m50s
Test / Type Check (all packages) (push) Failing after 55s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
'use client';
|
||||
|
||||
import { ActionLink } from '@/components/actions/ActionLink';
|
||||
import { accountCreateUrl } from '@/lib/account-urls';
|
||||
import type { Locale } from '@/lib/localization/config';
|
||||
import type { ThemePreference } from '@/lib/theme/config';
|
||||
import type { ComponentProps } from 'react';
|
||||
import { useThemePreference } from './useThemePreference';
|
||||
|
||||
interface ThemedAccountCreateLinkProps
|
||||
extends Omit<ComponentProps<typeof ActionLink>, 'href'> {
|
||||
locale: Locale;
|
||||
initialPreference: ThemePreference;
|
||||
}
|
||||
|
||||
export function ThemedAccountCreateLink({
|
||||
locale,
|
||||
initialPreference,
|
||||
...props
|
||||
}: ThemedAccountCreateLinkProps) {
|
||||
const preference = useThemePreference(initialPreference);
|
||||
return <ActionLink href={accountCreateUrl(locale, preference)} {...props} />;
|
||||
}
|
||||
Reference in New Issue
Block a user