Browse Source

本站栏显示热门tag榜

pull/4/head
欧醚 4 years ago
parent
commit
24859251dc
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      app/javascript/mastodon/features/ui/components/columns_area.js

+ 7
- 0
app/javascript/mastodon/features/ui/components/columns_area.js View File

@ -31,6 +31,8 @@ import NavigationPanel from './navigation_panel';
import detectPassiveEvents from 'detect-passive-events';
import { scrollRight } from '../../../scroll';
import TrendsContainer from '../../getting_started/containers/trends_container';
const componentMap = {
'COMPOSE': Compose,
'HOME': HomeTimeline,
@ -157,8 +159,13 @@ class ColumnsArea extends ImmutablePureComponent {
React.cloneElement(this.props.children) :
<ColumnLoading title={title} icon={icon} />;
console.log(link.props);
return (
<div className='columns-area columns-area--mobile' key={index}>
{
link.props['data-preview-title-id'] == 'column.community' &&
<TrendsContainer />
}
{view}
</div>
);

Loading…
Cancel
Save