mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
linting: fix jsx deprecation errors
This commit is contained in:
parent
89b73562fd
commit
f5739355d6
@ -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
|
||||
|
||||
@ -10,7 +10,7 @@ function SidebarSubmenu({
|
||||
icon,
|
||||
}: {
|
||||
path: string
|
||||
icon: JSX.Element
|
||||
icon: React.JSX.Element
|
||||
name: string
|
||||
submenu?: Route[]
|
||||
}) {
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -16,7 +16,7 @@ export interface HeaderViewProps {
|
||||
|
||||
export interface PlatformConfig {
|
||||
shareUrl: string
|
||||
icon: JSX.Element
|
||||
icon: React.JSX.Element
|
||||
label: string
|
||||
bgColor: string
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user