mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
Merge branch 'main' into readme-patch-1
This commit is contained in:
commit
d21c3bdfe9
@ -12,7 +12,7 @@
|
||||
import EllipsisVerticalIcon from '@heroicons/react/16/solid/EllipsisVerticalIcon'
|
||||
import PencilIcon from '@heroicons/react/24/solid/PencilIcon'
|
||||
import TrashIcon from '@heroicons/react/24/solid/TrashIcon'
|
||||
import { useState, useEffect } from 'react'
|
||||
import { useState } from 'react'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
|
||||
import TargetDotSVG from '#assets/targetDot.svg'
|
||||
@ -56,10 +56,6 @@ export function HeaderView({
|
||||
|
||||
const [imageLoaded, setImageLoaded] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
setImageLoaded(false)
|
||||
}, [item])
|
||||
|
||||
const avatar =
|
||||
item.image &&
|
||||
appState.assetsApi.url + item.image + `${big ? '?width=160&heigth=160' : '?width=80&heigth=80'}`
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
import { useMap } from 'react-leaflet'
|
||||
|
||||
export const setItemLocation = () => {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
const map = useMap()
|
||||
|
||||
return <div></div>
|
||||
}
|
||||
@ -150,29 +150,41 @@ export const TabsView = ({
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<Link to={'/item/' + getUserProfile(a.user_created.id)?.id}>
|
||||
<div className='flex items-center gap-3'>
|
||||
<div className='tw-avatar'>
|
||||
<div className='tw-mask tw-rounded-full h-8 w-8 tw-mr-2'>
|
||||
<img
|
||||
src={
|
||||
appState.assetsApi.url +
|
||||
getUserProfile(a.user_created.id)?.image
|
||||
}
|
||||
alt='Avatar'
|
||||
/>
|
||||
{getUserProfile(a.user_created.id) ? (
|
||||
<Link to={'/item/' + getUserProfile(a.user_created.id)?.id}>
|
||||
<div className='flex items-center gap-3'>
|
||||
<div className='tw-avatar'>
|
||||
<div className='tw-mask tw-rounded-full tw-h-8 tw-w-8 tw-mr-2'>
|
||||
{getUserProfile(a.user_created.id)?.image && (
|
||||
<img
|
||||
src={
|
||||
appState.assetsApi.url +
|
||||
getUserProfile(a.user_created.id)?.image
|
||||
}
|
||||
alt='Avatar'
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className='font-bold'>
|
||||
{getUserProfile(a.user_created.id)?.name ??
|
||||
a.user_created.first_name}{' '}
|
||||
</div>
|
||||
<div className='tw-text-xs opacity-50 tw-text-zinc-500'>
|
||||
{timeAgo(a.date_created)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div className='font-bold'>
|
||||
{getUserProfile(a.user_created.id)?.name}
|
||||
</div>
|
||||
<div className='tw-text-xs opacity-50 tw-text-zinc-500'>
|
||||
{timeAgo(a.date_created)}
|
||||
</div>
|
||||
</Link>
|
||||
) : (
|
||||
<div>
|
||||
<div className='font-bold'>{a.user_created.first_name} </div>
|
||||
<div className='tw-text-xs opacity-50 tw-text-zinc-500'>
|
||||
{timeAgo(a.date_created)}
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user