mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Fix linting
This commit is contained in:
parent
618bdf290e
commit
f6fbc79f89
@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable no-console */
|
|
||||||
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
/* eslint-disable @typescript-eslint/no-unnecessary-condition */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||||
/* eslint-disable @typescript-eslint/restrict-plus-operands */
|
/* eslint-disable @typescript-eslint/restrict-plus-operands */
|
||||||
@ -177,8 +176,6 @@ export const TextView = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (href?.startsWith('#')) {
|
if (href?.startsWith('#')) {
|
||||||
console.log(href.slice(1).toLowerCase())
|
|
||||||
console.log(tags)
|
|
||||||
const tag = tags.find(
|
const tag = tags.find(
|
||||||
(t) => t.name.toLowerCase() === decodeURI(href).slice(1).toLowerCase(),
|
(t) => t.name.toLowerCase() === decodeURI(href).slice(1).toLowerCase(),
|
||||||
)
|
)
|
||||||
|
|||||||
@ -6,7 +6,9 @@ type UsePopupFormManagerResult = ReturnType<typeof usePopupFormManager>
|
|||||||
|
|
||||||
const PoupFormContext = createContext<UsePopupFormManagerResult>({
|
const PoupFormContext = createContext<UsePopupFormManagerResult>({
|
||||||
popupForm: {} as PopupFormState | null,
|
popupForm: {} as PopupFormState | null,
|
||||||
setPopupForm: () => {},
|
setPopupForm: () => {
|
||||||
|
/* empty function */
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
function usePopupFormManager(): {
|
function usePopupFormManager(): {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user