mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
fix linting
This commit is contained in:
parent
9b1ba34932
commit
1549ab907a
2
lib/package-lock.json
generated
2
lib/package-lock.json
generated
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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' : ''
|
||||
|
||||
@ -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 [
|
||||
{
|
||||
|
||||
@ -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'
|
||||
Loading…
x
Reference in New Issue
Block a user