mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
UI fixes
This commit is contained in:
@@ -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…');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user