From ea57c8170c8cf2add071066af2b8b8b677b314da Mon Sep 17 00:00:00 2001 From: Nicolas Laval Date: Sat, 7 Dec 2024 22:20:08 +0100 Subject: [PATCH] Fix TS issue --- app/package.json | 1 + app/src/components/common/XMLViewer.tsx | 3 ++- app/yarn.lock | 9 ++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/package.json b/app/package.json index 5347a66..f96bedf 100644 --- a/app/package.json +++ b/app/package.json @@ -29,6 +29,7 @@ "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", + "@types/react-syntax-highlighter": "^15.5.13", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.15.0", "eslint-plugin-react-hooks": "^5.0.0", diff --git a/app/src/components/common/XMLViewer.tsx b/app/src/components/common/XMLViewer.tsx index a1773a5..82f0290 100644 --- a/app/src/components/common/XMLViewer.tsx +++ b/app/src/components/common/XMLViewer.tsx @@ -1,5 +1,6 @@ +// @ts-nocheck import { useTheme } from "@mui/material"; -import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; +import { PrismAsyncLight as SyntaxHighlighter } from "react-syntax-highlighter"; import { oneLight, oneDark } from "react-syntax-highlighter/dist/esm/styles/prism"; import xmlFormatter from "xml-formatter"; diff --git a/app/yarn.lock b/app/yarn.lock index de0ccaf..abf3a9c 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -878,6 +878,13 @@ dependencies: "@types/react" "^18" +"@types/react-syntax-highlighter@^15.5.13": + version "15.5.13" + resolved "https://registry.yarnpkg.com/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.13.tgz#c5baf62a3219b3bf28d39cfea55d0a49a263d1f2" + integrity sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA== + dependencies: + "@types/react" "*" + "@types/react-transition-group@^4.4.11": version "4.4.11" resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.11.tgz#d963253a611d757de01ebb241143b1017d5d63d5" @@ -1943,7 +1950,7 @@ react-router@6.28.0: dependencies: "@remix-run/router" "1.21.0" -react-syntax-highlighter@^15.6.1: +react-syntax-highlighter@^15.5.13: version "15.6.1" resolved "https://registry.yarnpkg.com/react-syntax-highlighter/-/react-syntax-highlighter-15.6.1.tgz#fa567cb0a9f96be7bbccf2c13a3c4b5657d9543e" integrity sha512-OqJ2/vL7lEeV5zTJyG7kmARppUjiB9h9udl4qHQjjgEos66z00Ia0OckwYfRxCSFrW8RJIBnsBwQsHZbVPspqg==