From 30017d62c9c9696458a5c37a408a2f0af7c83c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 15 May 2022 09:06:40 +0200 Subject: [PATCH] Use arrow-left for ReplyMentionsModal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/components/ui/modal/modal.tsx | 16 +++++++++++++--- .../ui/components/reply_mentions_modal.tsx | 2 ++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/app/soapbox/components/ui/modal/modal.tsx b/app/soapbox/components/ui/modal/modal.tsx index b78dfe823..5ac16ca14 100644 --- a/app/soapbox/components/ui/modal/modal.tsx +++ b/app/soapbox/components/ui/modal/modal.tsx @@ -15,6 +15,10 @@ interface IModal { cancelAction?: () => void, /** Cancel button text. */ cancelText?: string, + /** URL to an SVG icon for the close button. */ + closeIcon?: string, + /** Position of the close button. */ + closePosition?: 'left' | 'right', /** Callback when the modal is confirmed. */ confirmationAction?: () => void, /** Whether the confirmation button is disabled. */ @@ -40,6 +44,8 @@ const Modal: React.FC = ({ cancelAction, cancelText, children, + closeIcon = require('@tabler/icons/icons/x.svg'), + closePosition = 'right', confirmationAction, confirmationDisabled, confirmationText, @@ -63,14 +69,18 @@ const Modal: React.FC = ({
-
-

+
+

{title}

{onClose && ( = ({ onClose }) => { } onClose={onClickClose} + closeIcon={require('@tabler/icons/icons/arrow-left.svg')} + closePosition='left' >
{mentions.map(accountId => )}