Refactor last release changes component to use markdown preview component
This commit is contained in:
parent
d6663074e3
commit
c59d827a39
1 changed files with 2 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue