Make sidebar avatar keyboard-clickable. (#921)
This commit is contained in:
committed by
GitHub
parent
97f0d3431c
commit
6768e3ff71
@@ -40,7 +40,10 @@ import {router} from '../../../routes'
|
|||||||
const ProfileCard = observer(() => {
|
const ProfileCard = observer(() => {
|
||||||
const store = useStores()
|
const store = useStores()
|
||||||
return (
|
return (
|
||||||
<Link href={`/profile/${store.me.handle}`} style={styles.profileCard}>
|
<Link
|
||||||
|
href={`/profile/${store.me.handle}`}
|
||||||
|
style={styles.profileCard}
|
||||||
|
asAnchor>
|
||||||
<UserAvatar avatar={store.me.avatar} size={64} />
|
<UserAvatar avatar={store.me.avatar} size={64} />
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user