From 436df9ed309361d7be99ca01b533d9f4ba25f154 Mon Sep 17 00:00:00 2001 From: Rodrigo Antinarelli Date: Fri, 10 Jul 2020 12:48:51 -0300 Subject: [PATCH] OHIF-330: Update Modal Styles (#1891) --- platform/ui/src/components/Modal/Modal.jsx | 28 ++++++++++++---------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/platform/ui/src/components/Modal/Modal.jsx b/platform/ui/src/components/Modal/Modal.jsx index 3a245f8aa..a1d7667c8 100644 --- a/platform/ui/src/components/Modal/Modal.jsx +++ b/platform/ui/src/components/Modal/Modal.jsx @@ -4,7 +4,7 @@ import ReactModal from 'react-modal'; import './Modal.css'; -import { Typography, useModal, IconButton, Icon } from '@ohif/ui'; +import { Typography, useModal, Icon } from '@ohif/ui'; ReactModal.setAppElement(document.getElementById('root')); @@ -25,18 +25,20 @@ const Modal = ({ const renderHeader = () => { return ( title && ( -
- {title} +
+ + {title} + {closeButton && ( - - - + name="close" + className="cursor-pointer text-primary-active w-6 h-6" + /> )}
) @@ -45,15 +47,15 @@ const Modal = ({ return ( -
{renderHeader()}
-
+ {renderHeader()} +
{children}