From ccdaaa6ce2851d295c8876b8a5a68a9412911ad2 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Thu, 16 Apr 2020 12:19:25 +0200 Subject: [PATCH] Fix codestyle --- app/src/components/Sidebar/Publish/Publish.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/components/Sidebar/Publish/Publish.tsx b/app/src/components/Sidebar/Publish/Publish.tsx index 3392ca9..f7b42fe 100644 --- a/app/src/components/Sidebar/Publish/Publish.tsx +++ b/app/src/components/Sidebar/Publish/Publish.tsx @@ -143,7 +143,11 @@ function EditorMode(props: { ) } -const FormatJsonButton = React.memo(function FormatJsonButton(props: { editorMode: string, focusEditor: () => void, formatJson: () => void }) { +const FormatJsonButton = React.memo(function FormatJsonButton(props: { + editorMode: string + focusEditor: () => void + formatJson: () => void +}) { if (props.editorMode !== 'json') { return null } @@ -162,7 +166,7 @@ const FormatJsonButton = React.memo(function FormatJsonButton(props: { editorMod ) }) -const PublishButton = (props: { publish: () => void, focusEditor: () => void }) => { +const PublishButton = (props: { publish: () => void; focusEditor: () => void }) => { const handleClickPublish = useCallback( (e: React.MouseEvent) => { e.stopPropagation()