mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 09:04:44 -04:00
Refactor handling of environment variables (#2303)
* Refactor environment variables Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e412115a78
commit
39a4125cb0
85 changed files with 624 additions and 461 deletions
|
@ -6,7 +6,6 @@
|
|||
import React from 'react'
|
||||
import { useAsync } from 'react-use'
|
||||
import { getUser } from '../../../api/users'
|
||||
import { customizeAssetsUrl } from '../../../utils/customize-assets-url'
|
||||
import type { UserAvatarProps } from './user-avatar'
|
||||
import { UserAvatar } from './user-avatar'
|
||||
import type { UserInfo } from '../../../api/users/types'
|
||||
|
@ -34,7 +33,7 @@ export const UserAvatarForUsername: React.FC<UserAvatarForUsernameProps> = ({ us
|
|||
}
|
||||
return {
|
||||
displayName: t('common.guestUser'),
|
||||
photo: `${customizeAssetsUrl}img/avatar.png`,
|
||||
photo: `public/img/avatar.png`,
|
||||
username: ''
|
||||
}
|
||||
}, [username, t])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue