linting: fix jsx deprecation errors

This commit is contained in:
mahula 2025-12-03 21:12:32 +01:00
parent 89b73562fd
commit f5739355d6
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -10,7 +10,7 @@ function SidebarSubmenu({
icon,
}: {
path: string
icon: JSX.Element
icon: React.JSX.Element
name: string
submenu?: Route[]
}) {

View File

@ -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()

View File

@ -16,7 +16,7 @@ export interface HeaderViewProps {
export interface PlatformConfig {
shareUrl: string
icon: JSX.Element
icon: React.JSX.Element
label: string
bgColor: string
}