File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ interface UseModalReturnI extends ModalProps {
3131 isOpen : boolean ;
3232}
3333
34- const CloseBtn = styled ( IconButton ) `
34+ export const CloseBtn = styled ( IconButton ) `
3535 && {
3636 & svg {
3737 fill: #fff;
@@ -54,7 +54,7 @@ const StyledDialog = styled(Dialog)`
5454 }
5555` ;
5656
57- const StyledHeader = styled ( 'div' ) ( ( ) => ( {
57+ export const ModalStyledHeader = styled ( 'div' ) ( ( ) => ( {
5858 background : 'linear-gradient(90deg, #3B687B 0%, #507D90 100%)' ,
5959 color : '#eee' ,
6060 display : 'flex' ,
@@ -141,15 +141,15 @@ export const Modal: React.FC<ModalProps> = ({
141141 { ...props }
142142 >
143143 { title && (
144- < StyledHeader >
144+ < ModalStyledHeader >
145145 { headerIcon && headerIcon }
146146 < Typography component = { 'div' } variant = "h6" >
147147 { title }
148148 </ Typography >
149149 < CloseBtn onClick = { closeModal } >
150150 < CloseIcon { ...iconLarge } fill = "#fff" > </ CloseIcon >
151151 </ CloseBtn >
152- </ StyledHeader >
152+ </ ModalStyledHeader >
153153 ) }
154154
155155 { reactNode && reactNode }
Original file line number Diff line number Diff line change @@ -89,13 +89,15 @@ export {
8989
9090//Custom Modal
9191export {
92+ CloseBtn ,
9293 Modal ,
9394 ModalBody ,
9495 ModalButtonDanger ,
9596 ModalButtonPrimary ,
9697 ModalButtonSecondary ,
9798 ModalButtonTertiary ,
9899 ModalFooter ,
100+ ModalStyledHeader ,
99101 PrimaryActionButtons ,
100102 useModal
101103} from './Modal' ;
You can’t perform that action at this time.
0 commit comments