Skip to content

Commit a2e13ca

Browse files
authored
Add useBaseUrl to index.js file (#5903)
1 parent d8e8fb1 commit a2e13ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/theme/Admonition/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import clsx from 'clsx';
33
import {ThemeClassNames} from '@docusaurus/theme-common';
44
import Translate from '@docusaurus/Translate';
55
import styles from './styles.module.css';
6+
import useBaseUrl from '@docusaurus/useBaseUrl';
67
function NoteIcon() {
78
return (
89
<svg viewBox="0 0 14 16">
@@ -55,7 +56,7 @@ function WarningIcon() {
5556
}
5657
function SumoIcon() {
5758
return (
58-
<img src="/img/reuse/sumo-square.png" width="25"/>
59+
<img src={useBaseUrl('img/reuse/sumo-square.png')} width="25"/>
5960
)
6061
}
6162
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style

0 commit comments

Comments
 (0)