diff --git a/public/app/features/dashboard/components/DashboardLoading/FnLoader.tsx b/public/app/features/dashboard/components/DashboardLoading/FnLoader.tsx index 751ae08e747ca..e78b27c055e12 100644 --- a/public/app/features/dashboard/components/DashboardLoading/FnLoader.tsx +++ b/public/app/features/dashboard/components/DashboardLoading/FnLoader.tsx @@ -1,6 +1,8 @@ import { Box, CircularProgress, CircularProgressProps, Typography, type BoxProps } from '@mui/material'; import React, { type ReactNode, type FC, type HTMLAttributes } from 'react'; +import { useTheme2 } from '@grafana/ui'; + import logoUrl from './fn-logo.svg'; export type FnLoaderProps = { @@ -17,25 +19,32 @@ export const FnLoader: FC = ({ circularProgressProps, imageProps, text, -}) => ( - - {'FluxNinja - - +}) => { + const theme = useTheme2(); + + return ( + + {'FluxNinja + + + + {typeof text === 'string' ? {text} : text || null} - {typeof text === 'string' ? {text} : text || null} - -); + ); +};