Added CacheStore server side, working with blog on client side more.
This commit is contained in:
@ -22,8 +22,9 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
import React from 'react';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
|
||||
|
||||
import { withLanguage } from '@public/language/Language';
|
||||
import BannerImageSection from '@sections/image/banner/BannerImageSection';
|
||||
import { PageBoundary } from '@components/page/Page';
|
||||
|
||||
@ -34,8 +35,8 @@ import { Title, Paragraph } from '@objects/typography/Typography';
|
||||
|
||||
import Styles from './FeaturedArticleSection.scss';
|
||||
|
||||
export default props => {
|
||||
let { article } = props;
|
||||
export default withLanguage(props => {
|
||||
let { article, lang } = props;
|
||||
|
||||
return (
|
||||
<BannerImageSection
|
||||
@ -46,17 +47,18 @@ export default props => {
|
||||
|
||||
<ContentBox box className="c-featured-article__header">
|
||||
<Title className="c-featured-article__title">
|
||||
{ article.title }
|
||||
<NavLink to={ article.url } children={ article.title} />
|
||||
</Title>
|
||||
</ContentBox>
|
||||
|
||||
<ContentBox box className="c-featured-article__body">
|
||||
<Paragraph className="c-featured-article__description">
|
||||
{ article.shortDescription }
|
||||
{ article.shortDescription }
|
||||
<NavLink to={ article.url } children={ lang.blog.article.readMore } />
|
||||
</Paragraph>
|
||||
</ContentBox>
|
||||
|
||||
</PageBoundary>
|
||||
</BannerImageSection>
|
||||
);
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user