parent
820fff38d7
commit
db3dc2ab83
8 changed files with 2 additions and 90 deletions
|
@ -1,16 +1,6 @@
|
|||
import Trends from 'mastodon/features/getting_started/containers/trends_container';
|
||||
import { showTrends } from 'mastodon/initial_state';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
export const NavigationPortal: React.FC = () => (
|
||||
<div className='navigation-panel__portal'>
|
||||
{/* Existing Trends section */}
|
||||
{showTrends && <Trends />}
|
||||
|
||||
{/* Add Local Top tab */}
|
||||
<Link to='/timelines/local_top' className='column-link'>
|
||||
<i className='fa fa-fire' />
|
||||
<span>Local Top</span>
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
<div className='navigation-panel__portal'>{showTrends && <Trends />}</div>
|
||||
);
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
// app/javascript/mastodon/features/local_top_timeline/index.js
|
||||
import React from 'react';
|
||||
import Timeline from '../../components/timeline';
|
||||
|
||||
export default class LocalTopTimeline extends React.PureComponent {
|
||||
render() {
|
||||
return (
|
||||
<Timeline
|
||||
endpoint='/api/v1/timelines/local_top'
|
||||
{...this.props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
// app/javascript/mastodon/routes.js
|
||||
{
|
||||
path: '/timelines/local_top',
|
||||
component: AsyncComponent(() => import('../features/local_top_timeline')),
|
||||
exact: true,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue