fix(www-website): fix link to community, fix CMS previews (#3189)

This commit is contained in:
Erez Rokah
2020-02-04 09:16:48 +02:00
committed by GitHub
parent 4f5544287f
commit 68dd3c1de7
10 changed files with 375 additions and 369 deletions

View File

@ -1,5 +1,5 @@
import React from 'react';
import CMS from 'netlify-cms';
import CMS from 'netlify-cms-app';
import dayjs from 'dayjs';
import Prism from 'prismjs';
import { BlogPostTemplate } from '../templates/blog-post';
@ -64,13 +64,14 @@ const WidgetDocPreview = ({ entry, widgetFor }) => (
const ReleasePreview = ({ entry }) => (
<WhatsNew
updates={[
entry.getIn(['data', 'updates']).map(release => ({
updates={entry
.getIn(['data', 'updates'])
.map(release => ({
version: release.get('version'),
date: dayjs(release.get('date')).format('MMMM D, YYYY'),
description: release.get('description'),
})),
]}
}))
.toJS()}
/>
);