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 {
|
export interface Route {
|
||||||
path: string
|
path: string
|
||||||
icon: JSX.Element
|
icon: React.JSX.Element
|
||||||
name: string
|
name: string
|
||||||
submenu?: Route[]
|
submenu?: Route[]
|
||||||
blank?: boolean
|
blank?: boolean
|
||||||
|
|||||||
@ -10,7 +10,7 @@ function SidebarSubmenu({
|
|||||||
icon,
|
icon,
|
||||||
}: {
|
}: {
|
||||||
path: string
|
path: string
|
||||||
icon: JSX.Element
|
icon: React.JSX.Element
|
||||||
name: string
|
name: string
|
||||||
submenu?: Route[]
|
submenu?: Route[]
|
||||||
}) {
|
}) {
|
||||||
|
|||||||
@ -32,7 +32,7 @@ declare module 'leaflet' {
|
|||||||
* React wrapper for leaflet.locatecontrol that provides user geolocation functionality
|
* React wrapper for leaflet.locatecontrol that provides user geolocation functionality
|
||||||
* @category Map Controls
|
* @category Map Controls
|
||||||
*/
|
*/
|
||||||
export const LocateControl = (): JSX.Element => {
|
export const LocateControl = (): React.JSX.Element => {
|
||||||
const map = useMap()
|
const map = useMap()
|
||||||
const myProfile = useMyProfile()
|
const myProfile = useMyProfile()
|
||||||
const updateItem = useUpdateItem()
|
const updateItem = useUpdateItem()
|
||||||
|
|||||||
@ -16,7 +16,7 @@ export interface HeaderViewProps {
|
|||||||
|
|
||||||
export interface PlatformConfig {
|
export interface PlatformConfig {
|
||||||
shareUrl: string
|
shareUrl: string
|
||||||
icon: JSX.Element
|
icon: React.JSX.Element
|
||||||
label: string
|
label: string
|
||||||
bgColor: string
|
bgColor: string
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user