mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12: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 { useTranslation } from 'react-i18next';
|
||||||
import { MaritimeLoader } from '../components/MaritimeLoader';
|
import { MaritimeLoader } from '../components/MaritimeLoader';
|
||||||
|
|
||||||
@@ -21,8 +21,8 @@ export function PageLoader({
|
|||||||
framed = true,
|
framed = true,
|
||||||
}: PageLoaderProps) {
|
}: PageLoaderProps) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { colorScheme } = useMantineColorScheme();
|
const computedColorScheme = useComputedColorScheme('light', { getInitialValueInEffect: true });
|
||||||
const isDark = colorScheme === 'dark';
|
const isDark = computedColorScheme === 'dark';
|
||||||
|
|
||||||
const resolvedLabel = label ?? t('loading', 'Loading Maritime Services…');
|
const resolvedLabel = label ?? t('loading', 'Loading Maritime Services…');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user