Skip to content

Commit

Permalink
svgs now export as default with react query - substitute the .svg?rea…
Browse files Browse the repository at this point in the history
…ct extension for .svg

Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Jun 17, 2024
1 parent bdc57ce commit ec098c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import {
useTranslation,
} from 'react-i18next';

import {
ReactComponent as EmptyIncidents,
} from 'src/assets/images/empty_incidents.svg';
import EmptyIncidents from 'src/assets/images/empty_incidents.svg';

const EmptyIncidentsComponent = ({
message,
Expand Down
4 changes: 1 addition & 3 deletions src/components/NavigationBar/NavigationBarComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ import {
version as PD_APP_VERSION,
} from 'src/config/version';

import {
ReactComponent as Logo,
} from 'src/assets/images/pd_logo_black.svg';
import Logo from 'src/assets/images/pd_logo_black.svg';

import GlobalSearchComponent from 'src/components/GlobalSearch/GlobalSearchComponent';
import QuerySettingsComponent from 'src/components/QuerySettings/QuerySettingsComponent';
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default defineConfig(() => ({
}),
EnvironmentPlugin('all', { loadEnvFiles: true }),
// svgr options: https://react-svgr.com/docs/options/
svgr(),
svgr({ include: '**/*.svg' }),
eslint(),
fixAcceptHeader404(),
],
Expand Down

0 comments on commit ec098c0

Please sign in to comment.