From f4e6fe00021324da1ed794b7d06b8cfbe061c03f Mon Sep 17 00:00:00 2001 From: Gavin Reynolds Date: Mon, 17 Jun 2024 10:19:41 +0100 Subject: [PATCH] svgs now export as default with react query Signed-off-by: Gavin Reynolds --- .../IncidentTable/subcomponents/EmptyIncidentsComponent.jsx | 5 ++--- src/components/NavigationBar/NavigationBarComponent.jsx | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/IncidentTable/subcomponents/EmptyIncidentsComponent.jsx b/src/components/IncidentTable/subcomponents/EmptyIncidentsComponent.jsx index a6f647b1d..7a327b5cf 100644 --- a/src/components/IncidentTable/subcomponents/EmptyIncidentsComponent.jsx +++ b/src/components/IncidentTable/subcomponents/EmptyIncidentsComponent.jsx @@ -7,9 +7,8 @@ import { useTranslation, } from 'react-i18next'; -import { - ReactComponent as EmptyIncidents, -} from 'src/assets/images/empty_incidents.svg'; +// eslint-disable-next-line import/no-unresolved +import EmptyIncidents from 'src/assets/images/empty_incidents.svg?react'; const EmptyIncidentsComponent = ({ message, diff --git a/src/components/NavigationBar/NavigationBarComponent.jsx b/src/components/NavigationBar/NavigationBarComponent.jsx index 098e780df..252295ff6 100644 --- a/src/components/NavigationBar/NavigationBarComponent.jsx +++ b/src/components/NavigationBar/NavigationBarComponent.jsx @@ -61,9 +61,8 @@ import { version as PD_APP_VERSION, } from 'src/config/version'; -import { - ReactComponent as Logo, -} from 'src/assets/images/pd_logo_black.svg'; +// eslint-disable-next-line import/no-unresolved +import Logo from 'src/assets/images/pd_logo_black.svg?react'; import GlobalSearchComponent from 'src/components/GlobalSearch/GlobalSearchComponent'; import QuerySettingsComponent from 'src/components/QuerySettings/QuerySettingsComponent';