showExitIcon in link click dialog

pull/1855/head
audric 4 years ago
parent c880f7c8e9
commit 9f7e20b8b8

@ -87,6 +87,7 @@ export class Linkify extends React.Component<Props> {
message: window.i18n('linkVisitWarningMessage', url), message: window.i18n('linkVisitWarningMessage', url),
okText: window.i18n('open'), okText: window.i18n('open'),
cancelText: window.i18n('copy'), cancelText: window.i18n('copy'),
showExitIcon: true,
onClickOk: openLink, onClickOk: openLink,
onClickClose: () => { onClickClose: () => {
window.inboxStore?.dispatch(updateConfirmModal(null)); window.inboxStore?.dispatch(updateConfirmModal(null));

@ -26,6 +26,7 @@ export interface SessionConfirmDialogProps {
iconSize?: SessionIconSize; iconSize?: SessionIconSize;
theme?: DefaultTheme; theme?: DefaultTheme;
shouldShowConfirm?: boolean | undefined; shouldShowConfirm?: boolean | undefined;
showExitIcon?: boolean | undefined;
} }
const SessionConfirmInner = (props: SessionConfirmDialogProps) => { const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
@ -42,6 +43,7 @@ const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
iconSize, iconSize,
shouldShowConfirm, shouldShowConfirm,
onClickCancel, onClickCancel,
showExitIcon,
} = props; } = props;
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
@ -92,7 +94,7 @@ const SessionConfirmInner = (props: SessionConfirmDialogProps) => {
<SessionWrapperModal <SessionWrapperModal
title={title} title={title}
onClose={onClickClose} onClose={onClickClose}
showExitIcon={false} showExitIcon={showExitIcon}
showHeader={showHeader} showHeader={showHeader}
> >
{!showHeader && <SpacerLG />} {!showHeader && <SpacerLG />}

Loading…
Cancel
Save