From 8183b5822b600f0c93bfb75486e9635f6838b2aa Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Thu, 21 May 2020 18:35:46 +0800 Subject: [PATCH] Update markdown-toggle style in Publish to the new quick-action style for consistency with Comments. --- ui/component/publishText/view.jsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ui/component/publishText/view.jsx b/ui/component/publishText/view.jsx index 1ec6409ce..1cfc4b92a 100644 --- a/ui/component/publishText/view.jsx +++ b/ui/component/publishText/view.jsx @@ -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} /> -
-
} />