Remove else conditional

environments/review-hidden-blo-1okx3i/deployments/4727
danidfra 2 months ago
parent ec594e7c96
commit 28defb4b09

@ -23,7 +23,8 @@ const ActionsModal: React.FC<IActionsModal> = ({ status, actions, onClick, onClo
const renderAction = (action: MenuItem | null, i: number) => { const renderAction = (action: MenuItem | null, i: number) => {
if (action === null) { if (action === null) {
return <li key={`sep-${i}`} className='dropdown-menu__separator' />; return <li key={`sep-${i}`} className='dropdown-menu__separator' />;
} else if (action.text !== 'Blocks') { }
const { icon = null, text, meta = null, active = false, href = '#', destructive } = action; const { icon = null, text, meta = null, active = false, href = '#', destructive } = action;
const Comp = href === '#' ? 'button' : 'a'; const Comp = href === '#' ? 'button' : 'a';
@ -46,7 +47,6 @@ const ActionsModal: React.FC<IActionsModal> = ({ status, actions, onClick, onClo
</HStack> </HStack>
</li> </li>
); );
}
}; };
return ( return (

Loading…
Cancel
Save