From 7f7b0cba58f22041ecee38fe83c1453aa16cc480 Mon Sep 17 00:00:00 2001 From: "dmitrii.pichenikin" Date: Thu, 12 Mar 2026 14:55:52 +0300 Subject: [PATCH] fix ts and webpack errors --- webapp/package.json | 3 +++ webapp/src/components/rhs/all_badges_row.tsx | 2 +- webapp/src/components/rhs/rhs_scrollbars.tsx | 2 +- webapp/yarn.lock | 21 +------------------- 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/webapp/package.json b/webapp/package.json index c8f2657..974771a 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -76,6 +76,9 @@ "redux": "4.0.5", "typescript": "4.2.4" }, + "resolutions": { + "@types/react": "17.0.3" + }, "jest": { "snapshotSerializers": [ "/node_modules/enzyme-to-json/serializer" diff --git a/webapp/src/components/rhs/all_badges_row.tsx b/webapp/src/components/rhs/all_badges_row.tsx index a8d56bc..9c25719 100644 --- a/webapp/src/components/rhs/all_badges_row.tsx +++ b/webapp/src/components/rhs/all_badges_row.tsx @@ -3,7 +3,7 @@ import React from 'react'; import {FormattedMessage} from 'react-intl'; import {AllBadgesBadge} from '../../types/badges'; -import BadgeImage from '../utils/badge_image'; +import BadgeImage from '../badge_image/badge_image'; import {markdown} from 'utils/markdown'; import './all_badges_row.scss'; diff --git a/webapp/src/components/rhs/rhs_scrollbars.tsx b/webapp/src/components/rhs/rhs_scrollbars.tsx index f393bd9..1db87b1 100644 --- a/webapp/src/components/rhs/rhs_scrollbars.tsx +++ b/webapp/src/components/rhs/rhs_scrollbars.tsx @@ -26,7 +26,7 @@ function renderThumbVertical(props: any) { />); } -const RHSScrollbars = ({children}: {children: React.ReactNode[]}) => { +const RHSScrollbars = ({children}: {children: React.ReactNode}) => { return (