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) => {
if (action === null) {
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 Comp = href === '#' ? 'button' : 'a';
@ -46,7 +47,6 @@ const ActionsModal: React.FC<IActionsModal> = ({ status, actions, onClick, onClo
</HStack>
</li>
);
}
};
return (

Loading…
Cancel
Save