Refactor last release changes component to use markdown preview component

This commit is contained in:
Franco Montenegro 2021-02-02 18:34:21 -03:00 committed by Sean Yesmunt
parent d6663074e3
commit c59d827a39

View file

@ -1,7 +1,6 @@
// @flow
import React, { useState, useEffect } from 'react';
import remark from 'remark';
import reactRenderer from 'remark-react';
import MarkdownPreview from 'component/common/markdown-preview';
import Button from 'component/button';
import I18nMessage from 'component/i18nMessage';
@ -74,11 +73,7 @@ const LastReleaseChanges = (props: Props) => {
<div>
{releaseVersionTitle}
<p>
{
remark()
.use(reactRenderer)
.processSync(releaseChanges).contents
}
<MarkdownPreview content={releaseChanges} />
</p>
{seeReleaseNotes}
</div>