From 16105c2ce73c35d9f91e80b501262831562936fb Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Thu, 26 Sep 2024 09:45:29 +0200 Subject: [PATCH] fix: remove unused component --- .../Visualization/NoVisualizationMessage.js | 21 --------------- .../styles/NoVisualizationMessage.module.css | 26 ------------------- 2 files changed, 47 deletions(-) delete mode 100644 src/components/Item/VisualizationItem/Visualization/NoVisualizationMessage.js delete mode 100644 src/components/Item/VisualizationItem/Visualization/styles/NoVisualizationMessage.module.css diff --git a/src/components/Item/VisualizationItem/Visualization/NoVisualizationMessage.js b/src/components/Item/VisualizationItem/Visualization/NoVisualizationMessage.js deleted file mode 100644 index bd40984c5..000000000 --- a/src/components/Item/VisualizationItem/Visualization/NoVisualizationMessage.js +++ /dev/null @@ -1,21 +0,0 @@ -import { IconWarning24, colors } from '@dhis2/ui' -import PropTypes from 'prop-types' -import React from 'react' -import classes from './styles/NoVisualizationMessage.module.css' - -const NoVisualizationMessage = ({ message }) => { - return ( -

- - - - {message} -

- ) -} - -NoVisualizationMessage.propTypes = { - message: PropTypes.string, -} - -export default NoVisualizationMessage diff --git a/src/components/Item/VisualizationItem/Visualization/styles/NoVisualizationMessage.module.css b/src/components/Item/VisualizationItem/Visualization/styles/NoVisualizationMessage.module.css deleted file mode 100644 index f58630b93..000000000 --- a/src/components/Item/VisualizationItem/Visualization/styles/NoVisualizationMessage.module.css +++ /dev/null @@ -1,26 +0,0 @@ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - margin: 0; - padding: var(--spacers-dp8); - position: absolute; - inset-block-start: 50%; - inset-inline-start: 50%; - transform: translate(-50%, -50%); -} - -.icon { - display: inline-flex; - vertical-align: middle; - margin-block-end: var(--spacers-dp8); -} - -.message { - text-align: center; - font-size: 13px; - font-stretch: normal; - line-height: 18px; - color: var(--colors-grey800); -}