Added LinkTimeline and PreviewCard fetching by id

• Added:
- LinkTimeline and PreviewCard fetching by id
This commit is contained in:
mgabdev
2020-10-29 18:46:54 -05:00
parent f7dc62460c
commit f129d9c49b
15 changed files with 325 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ import ProPage from '../../pages/pro_page'
import ExplorePage from '../../pages/explore_page'
import NewsPage from '../../pages/news_page'
import AboutPage from '../../pages/about_page'
import LinkPage from '../../pages/link_page'
import {
About,
@@ -77,6 +78,7 @@ import {
HomeTimeline,
Investors,
LikedStatuses,
LinkTimeline,
ListCreate,
ListsDirectory,
ListEdit,
@@ -213,6 +215,8 @@ class SwitchingArea extends React.PureComponent {
<WrappedRoute path='/groups/:id' exact publicRoute page={GroupPage} component={GroupTimeline} content={children} componentParams={{ isTimeline: true }} />
<WrappedRoute path='/tags/:id' publicRoute page={HashtagPage} component={HashtagTimeline} content={children} componentParams={{ title: 'Hashtag' }} />
<WrappedRoute path='/links/:id' page={LinkPage} component={LinkTimeline} content={children} componentParams={{ title: 'Links' }} />
<WrappedRoute path='/shortcuts' page={ShortcutsPage} component={Shortcuts} content={children} />