File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ interface UseModalReturnI extends ModalProps {
31
31
isOpen : boolean ;
32
32
}
33
33
34
- const CloseBtn = styled ( IconButton ) `
34
+ export const CloseBtn = styled ( IconButton ) `
35
35
&& {
36
36
& svg {
37
37
fill: #fff;
@@ -54,7 +54,7 @@ const StyledDialog = styled(Dialog)`
54
54
}
55
55
` ;
56
56
57
- const StyledHeader = styled ( 'div' ) ( ( ) => ( {
57
+ export const ModalStyledHeader = styled ( 'div' ) ( ( ) => ( {
58
58
background : 'linear-gradient(90deg, #3B687B 0%, #507D90 100%)' ,
59
59
color : '#eee' ,
60
60
display : 'flex' ,
@@ -141,15 +141,15 @@ export const Modal: React.FC<ModalProps> = ({
141
141
{ ...props }
142
142
>
143
143
{ title && (
144
- < StyledHeader >
144
+ < ModalStyledHeader >
145
145
{ headerIcon && headerIcon }
146
146
< Typography component = { 'div' } variant = "h6" >
147
147
{ title }
148
148
</ Typography >
149
149
< CloseBtn onClick = { closeModal } >
150
150
< CloseIcon { ...iconLarge } fill = "#fff" > </ CloseIcon >
151
151
</ CloseBtn >
152
- </ StyledHeader >
152
+ </ ModalStyledHeader >
153
153
) }
154
154
155
155
{ reactNode && reactNode }
Original file line number Diff line number Diff line change @@ -89,13 +89,15 @@ export {
89
89
90
90
//Custom Modal
91
91
export {
92
+ CloseBtn ,
92
93
Modal ,
93
94
ModalBody ,
94
95
ModalButtonDanger ,
95
96
ModalButtonPrimary ,
96
97
ModalButtonSecondary ,
97
98
ModalButtonTertiary ,
98
99
ModalFooter ,
100
+ ModalStyledHeader ,
99
101
PrimaryActionButtons ,
100
102
useModal
101
103
} from './Modal' ;
You can’t perform that action at this time.
0 commit comments