diff options
Diffstat (limited to 'modern/src/reports/NoRowsOverlay.js')
-rw-r--r-- | modern/src/reports/NoRowsOverlay.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modern/src/reports/NoRowsOverlay.js b/modern/src/reports/NoRowsOverlay.js new file mode 100644 index 0000000..9fe53b1 --- /dev/null +++ b/modern/src/reports/NoRowsOverlay.js @@ -0,0 +1,15 @@ +import React, { useState } from 'react'; +import { Typography } from '@material-ui/core'; +import { GridOverlay } from '@material-ui/data-grid'; +import { useTranslation } from '../LocalizationProvider'; + +const NoRowsOverlay = () => { + const t = useTranslation(); + return ( + <GridOverlay> + <Typography>{t('sharedNoRows')}</Typography> + </GridOverlay> + ); +} + +export default NoRowsOverlay; |