File tree 4 files changed +5
-11
lines changed
lib/components/InputDialog
4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ const PlaylistsHeader: React.FC<PlaylistsHeaderProps> = ({
50
50
>
51
51
< div className = { styles . playlist_header_buttons } >
52
52
< InputDialog
53
- header = { t ( 'create-playlist-dialog-title' ) }
53
+ header = { < h4 > t('create-playlist-dialog-title')</ h4 > }
54
54
placeholder = { t ( 'dialog-placeholder' ) }
55
55
acceptLabel = { t ( 'dialog-accept' ) }
56
56
cancelLabel = { t ( 'dialog-cancel' ) }
Original file line number Diff line number Diff line change @@ -154,9 +154,7 @@ exports[`Track Popup container creating new playlist should open Input Dialog 1`
154
154
class = " content"
155
155
>
156
156
<h4 >
157
- <h4 >
158
- Input playlist name:
159
- </h4 >
157
+ Input playlist name:
160
158
</h4 >
161
159
<div
162
160
class = " ui fluid inverted input"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ interface CoreInputDialogProps {
14
14
15
15
interface UncontrolledInputDialogProps extends CoreInputDialogProps {
16
16
trigger : ModalProps [ 'trigger' ] ;
17
- onClose : ( ) => void ;
17
+ onClose ? : ( ) => void ;
18
18
}
19
19
20
20
interface ControlledInputDialogProps extends CoreInputDialogProps {
@@ -93,9 +93,7 @@ const InputDialog: React.VFC<InputDialogProps> = ({
93
93
{ ...( isControlled ? { } : { trigger : props . trigger } ) }
94
94
>
95
95
< Modal . Content >
96
- < h4 >
97
- { header }
98
- </ h4 >
96
+ { header }
99
97
< Input
100
98
fluid
101
99
inverted
Original file line number Diff line number Diff line change @@ -19,9 +19,7 @@ exports[`(Snapshot) InputDialog - open should render correctly 1`] = `
19
19
<div
20
20
class = " content"
21
21
>
22
- <h4 >
23
- Input header
24
- </h4 >
22
+ Input header
25
23
<div
26
24
class = " ui fluid inverted input"
27
25
>
You can’t perform that action at this time.
0 commit comments