mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-09 04:48:19 +00:00
fix
This commit is contained in:
@@ -125,7 +125,7 @@ export function LandingPage({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<main id="main">
|
<main id="main">
|
||||||
<Hero primaryHref={primaryHref} isAuthed={isAuthed} />
|
<Hero primaryHref={primaryHref} signupHref={signupHref} isAuthed={isAuthed} />
|
||||||
<About />
|
<About />
|
||||||
<QuickAccess />
|
<QuickAccess />
|
||||||
<Services />
|
<Services />
|
||||||
@@ -257,7 +257,15 @@ const HERO_BADGE_ICONS = {
|
|||||||
tracking: IconActivity,
|
tracking: IconActivity,
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
function Hero({ primaryHref, isAuthed }: { primaryHref: string; isAuthed: boolean }) {
|
function Hero({
|
||||||
|
primaryHref,
|
||||||
|
signupHref,
|
||||||
|
isAuthed,
|
||||||
|
}: {
|
||||||
|
primaryHref: string;
|
||||||
|
signupHref?: string;
|
||||||
|
isAuthed: boolean;
|
||||||
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const theme = useMantineTheme();
|
const theme = useMantineTheme();
|
||||||
const badgeKeys = Object.keys(HERO_BADGE_ICONS) as (keyof typeof HERO_BADGE_ICONS)[];
|
const badgeKeys = Object.keys(HERO_BADGE_ICONS) as (keyof typeof HERO_BADGE_ICONS)[];
|
||||||
@@ -318,7 +326,7 @@ function Hero({ primaryHref, isAuthed }: { primaryHref: string; isAuthed: boolea
|
|||||||
<Group justify="center">
|
<Group justify="center">
|
||||||
<Button
|
<Button
|
||||||
component={Link}
|
component={Link}
|
||||||
to={isAuthed ? primaryHref : '/signup'}
|
to={isAuthed ? primaryHref : (signupHref ?? '/login')}
|
||||||
size="lg"
|
size="lg"
|
||||||
variant="white"
|
variant="white"
|
||||||
color="dark"
|
color="dark"
|
||||||
|
|||||||
Reference in New Issue
Block a user