Update markdown-toggle style in Publish to the new quick-action style for consistency with Comments.

This commit is contained in:
infiinte-persistence 2020-05-21 18:35:46 +08:00 committed by Sean Yesmunt
parent 7064793319
commit 8183b5822b

View file

@ -1,7 +1,6 @@
// @flow
import React from 'react';
import { FormField } from 'component/common/form';
import Button from 'component/button';
import usePersistedState from 'effects/use-persisted-state';
import Card from 'component/common/card';
@ -41,14 +40,9 @@ function PublishText(props: Props) {
value={description}
disabled={disabled}
onChange={value => updatePublishForm({ description: advancedEditor ? value : value.target.value })}
quickActionLabel={advancedEditor ? __('Simple Editor') : __('Advanced Editor')}
quickActionHandler={toggleMarkdown}
/>
<div className="card__actions">
<Button
button="link"
onClick={toggleMarkdown}
label={advancedEditor ? __('Simple Editor') : __('Advanced Editor')}
/>
</div>
</React.Fragment>
}
/>