From 28defb4b09381d575110af5ad6532f5b95e42e27 Mon Sep 17 00:00:00 2001 From: danidfra Date: Thu, 25 Jul 2024 18:28:45 -0300 Subject: [PATCH] Remove else conditional --- .../ui/components/modals/actions-modal.tsx | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/features/ui/components/modals/actions-modal.tsx b/src/features/ui/components/modals/actions-modal.tsx index 3b73f0a5f..5fd37bab7 100644 --- a/src/features/ui/components/modals/actions-modal.tsx +++ b/src/features/ui/components/modals/actions-modal.tsx @@ -23,30 +23,30 @@ const ActionsModal: React.FC = ({ status, actions, onClick, onClo const renderAction = (action: MenuItem | null, i: number) => { if (action === null) { return
  • ; - } else if (action.text !== 'Blocks') { - const { icon = null, text, meta = null, active = false, href = '#', destructive } = action; - - const Comp = href === '#' ? 'button' : 'a'; - const compProps = href === '#' ? { onClick: onClick } : { href: href, rel: 'noopener' }; - - return ( -
  • - - {icon && } -
    -
    {text}
    -
    {meta}
    -
    -
    -
  • - ); } + + const { icon = null, text, meta = null, active = false, href = '#', destructive } = action; + + const Comp = href === '#' ? 'button' : 'a'; + const compProps = href === '#' ? { onClick: onClick } : { href: href, rel: 'noopener' }; + + return ( +
  • + + {icon && } +
    +
    {text}
    +
    {meta}
    +
    +
    +
  • + ); }; return (