|
@@ -18,6 +18,11 @@ export type Props = {
|
18
|
18
|
*/
|
19
|
19
|
closeDialog: Function,
|
20
|
20
|
|
|
21
|
+ /**
|
|
22
|
+ * Css class name that will be added to the dialog.
|
|
23
|
+ */
|
|
24
|
+ cssClassName: string,
|
|
25
|
+
|
21
|
26
|
/**
|
22
|
27
|
* Which settings tab should be initially displayed. If not defined then
|
23
|
28
|
* the first tab will be displayed.
|
|
@@ -44,7 +49,12 @@ export type Props = {
|
44
|
49
|
/**
|
45
|
50
|
* Information about the tabs that will be rendered.
|
46
|
51
|
*/
|
47
|
|
- tabs: Array<Object>
|
|
52
|
+ tabs: Array<Object>,
|
|
53
|
+
|
|
54
|
+ /**
|
|
55
|
+ * Key to use for showing a title.
|
|
56
|
+ */
|
|
57
|
+ titleKey: string
|
48
|
58
|
|
49
|
59
|
};
|
50
|
60
|
|
|
@@ -102,8 +112,8 @@ class DialogWithTabs extends Component<Props, State> {
|
102
|
112
|
= { this.props.disableBlanketClickDismiss }
|
103
|
113
|
onCancel = { onCancel }
|
104
|
114
|
onSubmit = { this._onSubmit }
|
105
|
|
- titleKey = 'settings.title'>
|
106
|
|
- <div className = 'settings-dialog'>
|
|
115
|
+ titleKey = { this.props.titleKey } >
|
|
116
|
+ <div className = { this.props.cssClassName } >
|
107
|
117
|
{ this._renderTabs() }
|
108
|
118
|
</div>
|
109
|
119
|
</StatelessDialog>
|