Added custom empty placeholder.
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
This commit is contained in:
parent
b1590c7adc
commit
edf5ffc244
10
src/App.jsx
10
src/App.jsx
@ -17,6 +17,7 @@ import {
|
|||||||
ElectronSpotlightContentPage
|
ElectronSpotlightContentPage
|
||||||
} from './components/Dashboard/context/SpotlightContext.jsx'
|
} from './components/Dashboard/context/SpotlightContext.jsx'
|
||||||
import { ActionsModalProvider } from './components/Dashboard/context/ActionsModalContext.jsx'
|
import { ActionsModalProvider } from './components/Dashboard/context/ActionsModalContext.jsx'
|
||||||
|
import MissingPlaceholder from './components/Dashboard/common/MissingPlaceholder.jsx'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ThemeProvider,
|
ThemeProvider,
|
||||||
@ -54,7 +55,14 @@ const AppContent = () => {
|
|||||||
const Router = getRouter()
|
const Router = getRouter()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ConfigProvider theme={themeConfig}>
|
<ConfigProvider
|
||||||
|
theme={themeConfig}
|
||||||
|
renderEmpty={() => (
|
||||||
|
<div style={{ margin: '32px' }}>
|
||||||
|
<MissingPlaceholder message='No data.' hasBackground={false} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
>
|
||||||
<App>
|
<App>
|
||||||
<Router>
|
<Router>
|
||||||
<ElectronProvider>
|
<ElectronProvider>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user