From f5739355d6b8a699b40302cf9e44efc0050b7842 Mon Sep 17 00:00:00 2001 From: mahula Date: Wed, 3 Dec 2025 21:12:32 +0100 Subject: [PATCH] linting: fix jsx deprecation errors --- lib/src/Components/AppShell/SideBar.tsx | 2 +- lib/src/Components/AppShell/SidebarSubmenu.tsx | 2 +- lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx | 2 +- .../Map/Subcomponents/ItemPopupComponents/HeaderView/types.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/Components/AppShell/SideBar.tsx b/lib/src/Components/AppShell/SideBar.tsx index b36aa7aa..1e8a1747 100644 --- a/lib/src/Components/AppShell/SideBar.tsx +++ b/lib/src/Components/AppShell/SideBar.tsx @@ -6,7 +6,7 @@ import SidebarSubmenu from './SidebarSubmenu' export interface Route { path: string - icon: JSX.Element + icon: React.JSX.Element name: string submenu?: Route[] blank?: boolean diff --git a/lib/src/Components/AppShell/SidebarSubmenu.tsx b/lib/src/Components/AppShell/SidebarSubmenu.tsx index 78280787..06fad1f4 100644 --- a/lib/src/Components/AppShell/SidebarSubmenu.tsx +++ b/lib/src/Components/AppShell/SidebarSubmenu.tsx @@ -10,7 +10,7 @@ function SidebarSubmenu({ icon, }: { path: string - icon: JSX.Element + icon: React.JSX.Element name: string submenu?: Route[] }) { diff --git a/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx b/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx index 1d4d5069..f1020520 100644 --- a/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx +++ b/lib/src/Components/Map/Subcomponents/Controls/LocateControl.tsx @@ -32,7 +32,7 @@ declare module 'leaflet' { * React wrapper for leaflet.locatecontrol that provides user geolocation functionality * @category Map Controls */ -export const LocateControl = (): JSX.Element => { +export const LocateControl = (): React.JSX.Element => { const map = useMap() const myProfile = useMyProfile() const updateItem = useUpdateItem() diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/types.ts b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/types.ts index 6f95df4a..f6d3c199 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/types.ts +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/types.ts @@ -16,7 +16,7 @@ export interface HeaderViewProps { export interface PlatformConfig { shareUrl: string - icon: JSX.Element + icon: React.JSX.Element label: string bgColor: string }