mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-12 23:36:00 +00:00
removed hardcoded asset api (#179)
This commit is contained in:
parent
0678506ed6
commit
6a5bc0ade3
@ -33,8 +33,6 @@ export default function NavBar({ appName }: { appName: string }) {
|
|||||||
: setUserProfile({ id: crypto.randomUUID(), name: user?.first_name ?? '', text: '' })
|
: setUserProfile({ id: crypto.randomUUID(), name: user?.first_name ?? '', text: '' })
|
||||||
}, [user, items])
|
}, [user, items])
|
||||||
|
|
||||||
// useEffect(() => {}, [userProfile])
|
|
||||||
|
|
||||||
const nameRef = useRef<HTMLHeadingElement>(null)
|
const nameRef = useRef<HTMLHeadingElement>(null)
|
||||||
const [nameWidth, setNameWidth] = useState<number>(0)
|
const [nameWidth, setNameWidth] = useState<number>(0)
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
@ -111,7 +109,7 @@ export default function NavBar({ appName }: { appName: string }) {
|
|||||||
{userProfile.image && (
|
{userProfile.image && (
|
||||||
<div className='tw-avatar'>
|
<div className='tw-avatar'>
|
||||||
<div className='tw-w-10 tw-rounded-full'>
|
<div className='tw-w-10 tw-rounded-full'>
|
||||||
<img src={'https://api.utopia-lab.org/assets/' + userProfile.image} />
|
<img src={appState.assetsApi.url + userProfile.image} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user