From c16e09957f9ad3afc1cfdb220a50f3fcea1cb85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 25 Jul 2024 19:55:02 +0200 Subject: [PATCH] Fix actions modal link target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/features/ui/components/modals/actions-modal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/ui/components/modals/actions-modal.tsx b/src/features/ui/components/modals/actions-modal.tsx index 2641cf2e9..0ba512e3e 100644 --- a/src/features/ui/components/modals/actions-modal.tsx +++ b/src/features/ui/components/modals/actions-modal.tsx @@ -29,7 +29,7 @@ const ActionsModal: React.FC = ({ 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 (