From e53181ef2da7c3f72a048714c74fd926a5a5fdbe Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Fri, 10 May 2024 19:57:34 +0300 Subject: [PATCH] Links in the placeholders for authorized users --- src/components/Feed/Placeholder/Placeholder.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Feed/Placeholder/Placeholder.tsx b/src/components/Feed/Placeholder/Placeholder.tsx index 09356e6f..f23b365e 100644 --- a/src/components/Feed/Placeholder/Placeholder.tsx +++ b/src/components/Feed/Placeholder/Placeholder.tsx @@ -19,18 +19,21 @@ export const Placeholder = (props: PlaceholderProps) => { header: t('Feed settings'), text: t('Placeholder feed'), buttonLabel: author() ? t('Popular authors') : t('Create own feed'), + href: '/authors?by=followers', }, feedCollaborations: { image: 'placeholder-experts.webp', header: t('Find collaborators'), text: t('Placeholder feedCollaborations'), buttonLabel: t('Find co-authors'), + href: '/authors?by=name', }, feedDiscussions: { image: 'placeholder-discussions.webp', header: t('Participate in discussions'), text: t('Placeholder feedDiscussions'), buttonLabel: author() ? t('Current discussions') : t('Enter'), + href: '/feed?by=last_comment', }, } @@ -51,7 +54,7 @@ export const Placeholder = (props: PlaceholderProps) => { } > - + {data[props.type].buttonLabel}