fix: fix redirect based on profile bug

This commit is contained in:
mengstabketemaw
2026-07-09 11:34:41 +03:00
parent 1471c797d9
commit db6a485374
14 changed files with 65 additions and 104 deletions

View File

@@ -15,14 +15,14 @@ import {
type BoxProps,
} from '@mantine/core';
import { IconCheck, IconMoon, IconSun } from '@tabler/icons-react';
import { useAuthConfig } from '../AuthConfig';
const LOGO_URL = '/brand/ema-white.png';
export function BrandMark({ size = 44, ...boxProps }: BoxProps & { size?: number }) {
const { logoUrl } = useAuthConfig();
return (
<Box
component="img"
src={logoUrl}
src={LOGO_URL}
alt="EMA"
w={size}
h={size}
@@ -78,7 +78,6 @@ export function AuthShell({
brandSubtitle = 'Apply for vessel and seafarer licenses, upload documents, and track every application in one secure portal.',
}: AuthShellProps) {
const theme = useMantineTheme();
const { logoUrl } = useAuthConfig();
const heroGradient = theme.other.heroGradient as string;
const computed = useComputedColorScheme('light');
const isDark = computed === 'dark';
@@ -167,7 +166,7 @@ export function AuthShell({
<Center>
<Box
component="img"
src={logoUrl}
src={LOGO_URL}
alt="EMA Portal"
style={{ display: 'block', maxWidth: '60%', height: 'auto' }}
/>