As a side project I wrote a little app, and for themes and layout I used React-Bootsrap. Right now I'm trying to learn Semantic UI React & I can't figure out how to add user profile photo to the dropdown (originally got the idea from Github's dropdown)
This is how it looks right now in my app using React Bootstrap
React Bootstrap code:
<NavDropdown
alignRight
title={<StyledUserIMG src={user.photoURL} alt='userPhoto' />}
>
<NavDropdown.ItemText>
Signed in as <b>{user.displayName}</b>
</NavDropdown.ItemText>
<NavDropdown.Item onClick={async () => await signOut()}>
<b>Sign Out </b>
<i className='fas fa-sign-out-alt'></i>
</NavDropdown.Item>
</NavDropdown>
Semantic UI code (what I have so far):
<Dropdown item>
<Dropdown.Item>
Signed in as <b>{user.displayName}</b>
</Dropdown.Item>
<Dropdown.Item onClick={async () => await signOut()}>
<b>Sign Out </b> <i className='fas fa-sign-out-alt'></i>
</Dropdown.Item>
</Dropdown>
Thank you in advance, wish y'all the best.