From b130fc76cba4b21269ee2d01c6a317bd94adfe83 Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Fri, 24 Feb 2023 19:52:14 +0530 Subject: [PATCH] chore: fix super auto-embed menu style --- .../SuperEditor/Plugins/AutoEmbedPlugin/index.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/AutoEmbedPlugin/index.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/AutoEmbedPlugin/index.tsx index c81c0447e..c5245c876 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/AutoEmbedPlugin/index.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/AutoEmbedPlugin/index.tsx @@ -24,6 +24,7 @@ import Button from '../../Lexical/UI/Button' import { DialogActions } from '../../Lexical/UI/Dialog' import { INSERT_TWEET_COMMAND } from '../TwitterPlugin' import { INSERT_YOUTUBE_COMMAND } from '../YouTubePlugin' +import { classNames } from '@standardnotes/snjs' interface PlaygroundEmbedConfig extends EmbedConfig { // Human readable name of the embeded content e.g. Tweet or Google Map. @@ -127,15 +128,11 @@ function AutoEmbedMenuItem({ onMouseEnter: () => void option: AutoEmbedOption }) { - let className = 'item' - if (isSelected) { - className += ' selected' - } return (
  • }) { return ( -
    -
      +
      +
        {options.map((option: AutoEmbedOption, i: number) => (