Updated News feature, NewsPage with new design, features

• Updated:
- News feature, NewsPage with new design, features

• Todo:
- Complete functionality in both News, NewsView for mobile and expanding rss feeds, lazy loading
This commit is contained in:
mgabdev
2020-11-06 23:34:23 -06:00
parent e3388749f4
commit 64ea4c5675
3 changed files with 96 additions and 215 deletions

View File

@@ -1,39 +1,18 @@
import React from 'react'
import PropTypes from 'prop-types'
import PageTitle from '../features/ui/util/page_title'
import DefaultLayout from '../layouts/default_layout'
import WrappedBundle from '../features/ui/util/wrapped_bundle'
import {
LinkFooter,
ProgressPanel,
ShopPanel,
SignUpPanel,
UserSuggestionsPanel,
} from '../features/ui/util/async_components'
import NewsLayout from '../layouts/news_layout'
class NewsPage extends React.PureComponent {
render() {
const { children, title } = this.props
const { children } = this.props
return (
<DefaultLayout
page='news'
title={title}
noComposeButton
showBackBtn
noRightSidebar
layout={[
SignUpPanel,
ProgressPanel,
<WrappedBundle component={UserSuggestionsPanel} componentParams={{ suggestionType: 'verified' }} />,
ShopPanel,
LinkFooter,
]}
>
<PageTitle path={title} />
<NewsLayout>
<PageTitle path='News' />
{children}
</DefaultLayout>
</NewsLayout>
)
}