Added custom empty placeholder.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2026-03-09 22:15:54 +00:00
parent b1590c7adc
commit edf5ffc244

View File

@ -17,6 +17,7 @@ import {
ElectronSpotlightContentPage
} from './components/Dashboard/context/SpotlightContext.jsx'
import { ActionsModalProvider } from './components/Dashboard/context/ActionsModalContext.jsx'
import MissingPlaceholder from './components/Dashboard/common/MissingPlaceholder.jsx'
import {
ThemeProvider,
@ -54,7 +55,14 @@ const AppContent = () => {
const Router = getRouter()
return (
<ConfigProvider theme={themeConfig}>
<ConfigProvider
theme={themeConfig}
renderEmpty={() => (
<div style={{ margin: '32px' }}>
<MissingPlaceholder message='No data.' hasBackground={false} />
</div>
)}
>
<App>
<Router>
<ElectronProvider>