Skip to content

Commit

Permalink
Update markdown-toggle style in Publish to the new quick-action style…
Browse files Browse the repository at this point in the history
… for consistency with Comments.
  • Loading branch information
infinite-persistence authored and Sean Yesmunt committed May 25, 2020
1 parent 7064793 commit 8183b58
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ui/component/publishText/view.jsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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>
}
/>
Expand Down

0 comments on commit 8183b58

Please sign in to comment.