File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import React, { useId } from "react";
22import { fr } from "../fr" ;
33import { symToStr } from "tsafe/symToStr" ;
44import { createComponentI18nApi } from "../i18n" ;
5- import ArtworkLightSvg from "../dsfr/artwork/light.svg" ;
6- import ArtworkDarkSvg from "../dsfr/artwork/dark.svg" ;
7- import ArtworkSystemSvg from "../dsfr/artwork/system.svg" ;
5+ import ArtworkLightSvg from "../dsfr/artwork/light.svg?url " ;
6+ import ArtworkDarkSvg from "../dsfr/artwork/dark.svg?url " ;
7+ import ArtworkSystemSvg from "../dsfr/artwork/system.svg?url " ;
88import { getAssetUrl } from "../tools/getAssetUrl" ;
99import type { HeaderProps } from "../Header" ;
1010import type { FooterProps } from "../Footer" ;
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ declare module "*.svg" {
33 export default _default ;
44}
55
6+ declare module "*.svg?url" {
7+ const _default : string | { src : string } ;
8+ export default _default ;
9+ }
10+
611declare module "*.png" {
712 const _default : string | { src : string } ;
813 export default _default ;
You can’t perform that action at this time.
0 commit comments