fix linting

This commit is contained in:
Anton Tranelis 2025-06-27 12:00:05 +02:00
parent 9b1ba34932
commit 1549ab907a
5 changed files with 3 additions and 25 deletions

2
lib/package-lock.json generated
View File

@ -37,7 +37,7 @@
"react-leaflet-cluster": "^2.1.0",
"react-markdown": "^9.0.1",
"react-photo-album": "^3.0.2",
"react-router-dom": "^6.16.0",
"react-router-dom": "^6.23.0",
"react-toastify": "^9.1.3",
"remark-breaks": "^4.0.0",
"tiptap-markdown": "^0.8.10",

View File

@ -125,7 +125,7 @@
"react-leaflet-cluster": "^2.1.0",
"react-markdown": "^9.0.1",
"react-photo-album": "^3.0.2",
"react-router-dom": "^6.16.0",
"react-router-dom": "^6.23.0",
"react-toastify": "^9.1.3",
"remark-breaks": "^4.0.0",
"tiptap-markdown": "^0.8.10",

View File

@ -101,7 +101,7 @@ export const GalleryForm = ({ state, setState }: Props) => {
{images.map((image, index) => (
<div key={index} className='tw:relative'>
<img
src={image.src}
src={image.src || undefined}
alt={`Gallery image ${index + 1}`}
className={`tw:w-full tw:h-full tw:object-cover tw:rounded-lg ${
image.state === 'uploading' ? 'tw:opacity-50' : ''

View File

@ -25,9 +25,7 @@ export const GalleryView = ({ item }: { item: Item }) => {
const images =
item.gallery?.flatMap((g, index) => {
const file = g.directus_files_id
// if it's just a string, skip it
if (typeof file === 'string') return []
// otherwise it's the object you want
const { id, type, width, height } = file
return [
{

View File

@ -1,20 +0,0 @@
export * from './AssetsApi'
export * from './FormState'
export * from './Item'
export * from './ItemsApi'
export * from './ItemType'
export * from './LayerProps'
export * from './MarkerIcon'
export * from './Permission'
export * from './PermissionAction'
export * from './PermissionCondition'
export * from './PopupFormState'
export * from './Profile'
export * from './Relation'
export * from './UserApi'
export * from './UtopiaMapProps'
export * from './UserItem'
export * from './Tag'
// Special handling for SVG type
export type { ReactComponent as SVGComponent, default as SVGSrc } from './SVG'