From 433a74a58a5b3616cd76cc2810cce3de322b048a Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 15 Sep 2024 23:17:21 +0300 Subject: [PATCH] linted --- src/components/Editor/SimplifiedEditor.tsx | 3 ++- src/components/_shared/Icon/Icon.module.scss | 8 ++++---- src/context/editor.tsx | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/Editor/SimplifiedEditor.tsx b/src/components/Editor/SimplifiedEditor.tsx index 0483eb68..f857cf6b 100644 --- a/src/components/Editor/SimplifiedEditor.tsx +++ b/src/components/Editor/SimplifiedEditor.tsx @@ -81,7 +81,8 @@ const SimplifiedEditor = (props: Props) => { BubbleMenu.configure({ pluginKey: 'textBubbleMenu', element: textBubbleMenuRef(), - shouldShow: ({ view, state }) => Boolean(props.onlyBubbleControls && view.hasFocus() && !state.selection.empty) + shouldShow: ({ view, state }) => + Boolean(props.onlyBubbleControls && view.hasFocus() && !state.selection.empty) }), BubbleMenu.configure({ pluginKey: 'linkBubbleMenu', diff --git a/src/components/_shared/Icon/Icon.module.scss b/src/components/_shared/Icon/Icon.module.scss index 4cafd050..b845ee7a 100644 --- a/src/components/_shared/Icon/Icon.module.scss +++ b/src/components/_shared/Icon/Icon.module.scss @@ -10,6 +10,10 @@ } .notificationsCounter { + @include media-breakpoint-up(md) { + left: 1.8rem; + } + align-items: center; background-color: #E84500; border-radius: 0.8rem; @@ -25,8 +29,4 @@ position: absolute; text-align: center; top: -0.5rem; - - @include media-breakpoint-up(md) { - left: 1.8rem; - } } diff --git a/src/context/editor.tsx b/src/context/editor.tsx index 0741b730..5e2d3a43 100644 --- a/src/context/editor.tsx +++ b/src/context/editor.tsx @@ -278,7 +278,7 @@ export const EditorProvider = (props: { children: JSX.Element }) => { toggleEditorPanel, countWords, setForm, - setFormErrors, + setFormErrors } const value: EditorContextType = {