diff --git a/app/soapbox/components/ui/modal/modal.tsx b/app/soapbox/components/ui/modal/modal.tsx index b78dfe8235..5ac16ca140 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 => )}