fix: file upload and OAuth2 (#26)

This commit is contained in:
Divlo
2022-04-08 20:59:04 +02:00
committed by GitHub
parent a64325f5b8
commit 313cfeeb36
15 changed files with 116 additions and 58 deletions

View File

@ -2,7 +2,6 @@ import Image from 'next/image'
import date from 'date-and-time'
import useTranslation from 'next-translate/useTranslation'
import { API_URL } from '../../../tools/api'
import { UserPublic } from '../../../models/User'
import { Guild } from '../../../models/Guild'
@ -28,7 +27,7 @@ export const UserProfile: React.FC<UserProfileProps> = (props) => {
className='rounded-full'
src={
user.logo != null
? API_URL + user.logo
? user.logo
: '/images/data/user-default.png'
}
alt='Profil Picture'
@ -91,9 +90,7 @@ export const UserProfile: React.FC<UserProfileProps> = (props) => {
</div>
</div>
<div className='mt-7'>
{user.biography != null && (
<p className='w-[45%]'>{user.biography}</p>
)}
{user.biography != null && <p>{user.biography}</p>}
</div>
</div>
</div>