Links in the placeholders for authorized users
This commit is contained in:
parent
6a789d4a0e
commit
e53181ef2d
|
@ -19,18 +19,21 @@ export const Placeholder = (props: PlaceholderProps) => {
|
||||||
header: t('Feed settings'),
|
header: t('Feed settings'),
|
||||||
text: t('Placeholder feed'),
|
text: t('Placeholder feed'),
|
||||||
buttonLabel: author() ? t('Popular authors') : t('Create own feed'),
|
buttonLabel: author() ? t('Popular authors') : t('Create own feed'),
|
||||||
|
href: '/authors?by=followers',
|
||||||
},
|
},
|
||||||
feedCollaborations: {
|
feedCollaborations: {
|
||||||
image: 'placeholder-experts.webp',
|
image: 'placeholder-experts.webp',
|
||||||
header: t('Find collaborators'),
|
header: t('Find collaborators'),
|
||||||
text: t('Placeholder feedCollaborations'),
|
text: t('Placeholder feedCollaborations'),
|
||||||
buttonLabel: t('Find co-authors'),
|
buttonLabel: t('Find co-authors'),
|
||||||
|
href: '/authors?by=name',
|
||||||
},
|
},
|
||||||
feedDiscussions: {
|
feedDiscussions: {
|
||||||
image: 'placeholder-discussions.webp',
|
image: 'placeholder-discussions.webp',
|
||||||
header: t('Participate in discussions'),
|
header: t('Participate in discussions'),
|
||||||
text: t('Placeholder feedDiscussions'),
|
text: t('Placeholder feedDiscussions'),
|
||||||
buttonLabel: author() ? t('Current discussions') : t('Enter'),
|
buttonLabel: author() ? t('Current discussions') : t('Enter'),
|
||||||
|
href: '/feed?by=last_comment',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +54,7 @@ export const Placeholder = (props: PlaceholderProps) => {
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<button>{data[props.type].buttonLabel}</button>
|
<a href={data[props.type].href}>{data[props.type].buttonLabel}</a>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user