Fix actions modal link target

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-07-25 19:55:02 +02:00
parent 9de78cb69b
commit c16e09957f

View File

@ -29,7 +29,7 @@ const ActionsModal: React.FC<IActionsModal> = ({ status, actions, onClick, onClo
const { icon = null, text, meta = null, href = '#', to, destructive } = action;
const Comp = href === '#' ? to ? Link : 'button' : 'a';
const compProps = href === '#' ? to ? { to, onClick } : { onClick } : { href: href, rel: 'noopener' };
const compProps = href === '#' ? to ? { to, onClick } : { onClick } : { href: href, rel: 'noopener', target: '_blank' };
return (
<li key={`${text}-${i}`}>