From 22ac904ef1989ecb4eb64dcecbabcdbf05a90017 Mon Sep 17 00:00:00 2001 From: Ilona Podliashanyk Date: Tue, 18 Apr 2023 12:22:43 +0200 Subject: [PATCH] Fix svg import errors This is a recommended workaround for a known bug in react-scripts v.5. See https://github.com/facebook/create-react-app/issues/11770 --- src/components/logo/Logo.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/logo/Logo.tsx b/src/components/logo/Logo.tsx index a3ed40ca..5830a150 100644 --- a/src/components/logo/Logo.tsx +++ b/src/components/logo/Logo.tsx @@ -1,7 +1,7 @@ import React from "react"; -import DarkLogo from "../../Media/img/logo/logo_dark.svg"; -import WhiteLogo from "../../Media/img/logo/logo_white.svg"; +import DarkLogo from "!file-loader!../../Media/img/logo/logo_dark.svg"; +import WhiteLogo from "!file-loader!../../Media/img/logo/logo_white.svg"; type LogoPropsType = { dark?: boolean;