File tree 3 files changed +27
-9
lines changed
3 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,22 @@ export function DialogExamples() {
25
25
</ a >
26
26
</ Dialog >
27
27
</ div >
28
+ < div className = "col-6" >
29
+ < h1 className = "h4" > No header Dialog</ h1 >
30
+ < Dialog
31
+ body = {
32
+ < div >
33
+ Lorem ipsum dolor, sit amet consectetur adipisicing elit. Quibusdam sequi vero sapiente delectus error
34
+ sunt, a eveniet nobis est ex magni nesciunt magnam. Eaque eius hic eligendi dolorum ut quas?
35
+ </ div >
36
+ }
37
+ keyboard = { false }
38
+ >
39
+ < a href = "" className = "btn btn-primary" >
40
+ No header Dialog
41
+ </ a >
42
+ </ Dialog >
43
+ </ div >
28
44
< div className = "col-6" >
29
45
< h1 className = "h4 mt-3" > Scrolling long content Dialog</ h1 >
30
46
< Dialog
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ ReactDOM.render(
22
22
< StatefulTabs
23
23
vertical = { true }
24
24
onlyRenderActiveTab = { true }
25
- initialTab = { 7 }
25
+ initialTab = { 0 }
26
26
tabs = { [
27
27
{
28
28
title : 'Dialog' ,
Original file line number Diff line number Diff line change @@ -78,14 +78,16 @@ export function Modal({
78
78
onClick = { stopPropagation }
79
79
>
80
80
< div className = "modal-content" >
81
- < div className = "modal-header" >
82
- < h5 className = "modal-title" > { title } </ h5 >
83
- { useTimesClose && (
84
- < button type = "button" className = "close" onClick = { closeAndHide } aria-label = "Close" >
85
- < span aria-hidden = "true" > ×</ span >
86
- </ button >
87
- ) }
88
- </ div >
81
+ { title && (
82
+ < div className = "modal-header" >
83
+ < h5 className = "modal-title" > { title } </ h5 >
84
+ { useTimesClose && (
85
+ < button type = "button" className = "close" onClick = { closeAndHide } aria-label = "Close" >
86
+ < span aria-hidden = "true" > ×</ span >
87
+ </ button >
88
+ ) }
89
+ </ div >
90
+ ) }
89
91
< div className = "modal-body" > { renderObjectOrFunction ( body , { close : closeAndHide } ) } </ div >
90
92
{ footer && < div className = "modal-footer" > { renderObjectOrFunction ( footer , { close : closeAndHide } ) } </ div > }
91
93
</ div >
You can’t perform that action at this time.
0 commit comments