From 877bd342717329c714cec78143b2806c79c9d770 Mon Sep 17 00:00:00 2001 From: Warrick Corfe-Tan Date: Tue, 22 Jun 2021 09:30:12 +1000 Subject: [PATCH] Minor formatting --- ts/components/conversation/Linkify.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/ts/components/conversation/Linkify.tsx b/ts/components/conversation/Linkify.tsx index 7362cd38e..f3dc90017 100644 --- a/ts/components/conversation/Linkify.tsx +++ b/ts/components/conversation/Linkify.tsx @@ -79,16 +79,18 @@ export class Linkify extends React.Component { const openLink = () => { void shell.openExternal(url); - } - - window.inboxStore?.dispatch(updateConfirmModal({ - title: window.i18n('linkVisitWarningTitle'), - message: window.i18n("linkVisitWarningMessage", url), - okText: window.i18n("open"), - onClickOk: openLink, - onClickClose: () => { - window.inboxStore?.dispatch(updateConfirmModal(null)); - } - })) + }; + + window.inboxStore?.dispatch( + updateConfirmModal({ + title: window.i18n('linkVisitWarningTitle'), + message: window.i18n('linkVisitWarningMessage', url), + okText: window.i18n('open'), + onClickOk: openLink, + onClickClose: () => { + window.inboxStore?.dispatch(updateConfirmModal(null)); + }, + }) + ); }; }