diff --git a/src/components/Dashboard/common/AlertsDisplay.jsx b/src/components/Dashboard/common/AlertsDisplay.jsx index b20f4bf..89b51aa 100644 --- a/src/components/Dashboard/common/AlertsDisplay.jsx +++ b/src/components/Dashboard/common/AlertsDisplay.jsx @@ -1,11 +1,10 @@ import PropTypes from 'prop-types' import { createElement } from 'react' -import { Flex, Alert, Button, Dropdown, Popover } from 'antd' +import { Flex, Alert, Button, Dropdown } from 'antd' import ExclamationOctagonIcon from '../../Icons/ExclamationOctagonIcon' import InfoCircleIcon from '../../Icons/InfoCircleIcon' import { CaretDownOutlined } from '@ant-design/icons' -import { useMediaQuery } from 'react-responsive' import { getModelByName } from '../../../database/ObjectModels' import { useNavigate } from 'react-router-dom' @@ -15,7 +14,6 @@ const AlertsDisplay = ({ showDismiss = true, showActions = true }) => { - const isMobile = useMediaQuery({ maxWidth: 768 }) const getAlertType = (type, priority) => { if (type === 'error' || priority === '9') return 'error' if (type === 'warning' || priority === '8') return 'warning' @@ -176,23 +174,11 @@ const AlertsDisplay = ({ ) }) - if (isMobile) { - return ( - - - - ) - } - - return {alertElements} + return ( + + {alertElements} + + ) } AlertsDisplay.propTypes = {