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
|
||||
} 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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user