Follow notifications => user profile
This commit is contained in:
parent
a7a482eecd
commit
85ad343d5d
|
@ -529,7 +529,8 @@ function NotificationItem(props: {
|
||||||
setNotificationsAsSeen([notification])
|
setNotificationsAsSeen([notification])
|
||||||
}, [notification])
|
}, [notification])
|
||||||
|
|
||||||
function getSourceUrl(sourceId?: string) {
|
function getSourceUrl() {
|
||||||
|
if (sourceType === 'follow') return `/${sourceUserUsername}`
|
||||||
if (!contract) return ''
|
if (!contract) return ''
|
||||||
return `/${contract.creatorUsername}/${
|
return `/${contract.creatorUsername}/${
|
||||||
contract.slug
|
contract.slug
|
||||||
|
@ -630,7 +631,7 @@ function NotificationItem(props: {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={'bg-white px-2 pt-6 text-sm sm:px-4'}>
|
<div className={'bg-white px-2 pt-6 text-sm sm:px-4'}>
|
||||||
<a href={getSourceUrl(sourceId)}>
|
<a href={getSourceUrl()}>
|
||||||
<Row className={'items-center text-gray-500 sm:justify-start'}>
|
<Row className={'items-center text-gray-500 sm:justify-start'}>
|
||||||
<Avatar
|
<Avatar
|
||||||
avatarUrl={sourceUserAvatarUrl}
|
avatarUrl={sourceUserAvatarUrl}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user