Skip to content

Commit 4b2ec9e

Browse files
committed
Fix logos url
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent c65beca commit 4b2ec9e

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

web/src/layout/navigation/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { FaGithub } from 'react-icons/fa';
55
import { FiExternalLink } from 'react-icons/fi';
66
import { Link } from 'react-router-dom';
77

8-
import logo from '../../media/clomonitor.svg';
8+
import logo from '../../media/clomonitor.svg?url';
99
import styles from './Footer.module.css';
1010

1111
interface Props {

web/src/layout/navigation/Navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Navbar as NavbarWrapper } from 'clo-ui/components/Navbar';
33
import { Dispatch, SetStateAction } from 'react';
44
import { Link } from 'react-router-dom';
55

6-
import logo from '../../media/clomonitor.svg';
6+
import logo from '../../media/clomonitor.svg?url';
77
import MobileSettings from './MobileSettings';
88
import styles from './Navbar.module.css';
99
import Searchbar from './Searchbar';

web/src/react-app-env.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
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+
}

web/src/setupTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { vi } from 'vitest';
66

77
process.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
}));

0 commit comments

Comments
 (0)