This commit is contained in:
estifanos
2026-08-19 10:01:24 +00:00
parent 4e2f63d4df
commit 1a3d963754

View File

@@ -1,4 +1,4 @@
import { Center, Box, Stack, Text, useMantineColorScheme } from '@mantine/core';
import { Center, Box, Stack, Text, useComputedColorScheme } from '@mantine/core';
import { useTranslation } from 'react-i18next';
import { MaritimeLoader } from '../components/MaritimeLoader';
@@ -21,8 +21,8 @@ export function PageLoader({
framed = true,
}: PageLoaderProps) {
const { t } = useTranslation();
const { colorScheme } = useMantineColorScheme();
const isDark = colorScheme === 'dark';
const computedColorScheme = useComputedColorScheme('light', { getInitialValueInEffect: true });
const isDark = computedColorScheme === 'dark';
const resolvedLabel = label ?? t('loading', 'Loading Maritime Services…');