File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { FaGithub } from 'react-icons/fa';
55import { FiExternalLink } from 'react-icons/fi' ;
66import { Link } from 'react-router-dom' ;
77
8- import logo from '../../media/clomonitor.svg' ;
8+ import logo from '../../media/clomonitor.svg?url ' ;
99import styles from './Footer.module.css' ;
1010
1111interface Props {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Navbar as NavbarWrapper } from 'clo-ui/components/Navbar';
33import { Dispatch , SetStateAction } from 'react' ;
44import { Link } from 'react-router-dom' ;
55
6- import logo from '../../media/clomonitor.svg' ;
6+ import logo from '../../media/clomonitor.svg?url ' ;
77import MobileSettings from './MobileSettings' ;
88import styles from './Navbar.module.css' ;
99import Searchbar from './Searchbar' ;
Original file line number Diff line number Diff line change 11/// <reference types="vite/client" />
22/// <reference types="react" />
3+
4+ declare module '*.svg' {
5+ const src : string ;
6+ export default src ;
7+ }
8+
9+ declare module '*.svg?url' {
10+ const src : string ;
11+ export default src ;
12+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { vi } from 'vitest';
66
77process . env . TZ = 'UTC' ;
88
9- vi . mock ( '/src/media/clomonitor.svg' , ( ) => ( {
9+ vi . mock ( '/src/media/clomonitor.svg?url ' , ( ) => ( {
1010 __esModule : true ,
1111 default : '/src/media/clomonitor.svg' ,
1212} ) ) ;
You can’t perform that action at this time.
0 commit comments