diff --git a/package.json b/package.json
index 8aa164a48..5639a8394 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,6 @@
"dependencies": {
"@atlaskit/avatar": "8.0.5",
"@atlaskit/button": "5.4.2",
- "@atlaskit/button-group": "1.5.3",
"@atlaskit/dropdown-menu": "3.10.2",
"@atlaskit/droplist": "4.11.1",
"@atlaskit/field-text": "4.0.1",
diff --git a/react/features/base/dialog/components/StatelessDialog.web.js b/react/features/base/dialog/components/StatelessDialog.web.js
index 260536333..52ce022c8 100644
--- a/react/features/base/dialog/components/StatelessDialog.web.js
+++ b/react/features/base/dialog/components/StatelessDialog.web.js
@@ -1,5 +1,4 @@
-import AKButton from '@atlaskit/button';
-import AKButtonGroup from '@atlaskit/button-group';
+import Button, { ButtonGroup } from '@atlaskit/button';
import ModalDialog from '@atlaskit/modal-dialog';
import { AtlasKitThemeProvider } from '@atlaskit/theme';
import PropTypes from 'prop-types';
@@ -189,12 +188,14 @@ class StatelessDialog extends Component {
}
return (
-
+ key = 'cancel'
+ onClick = { this._onCancel }
+ type = 'button'>
{ this.props.t(this.props.cancelTitleKey || 'dialog.Cancel') }
-
+
);
}
@@ -205,12 +206,18 @@ class StatelessDialog extends Component {
* @returns {ReactElement}
*/
_renderFooter() {
+ // Filter out falsy (null) values because {@code ButtonGroup} will error
+ // if passed in anything but buttons with valid type props.
+ const buttons = [
+ this._renderCancelButton(),
+ this._renderOKButton()
+ ].filter(Boolean);
+
return (
);
}
@@ -245,14 +252,16 @@ class StatelessDialog extends Component {
}
return (
-
+ key = 'submit'
+ onClick = { this._onSubmit }
+ type = 'button'>
{ this.props.t(this.props.okTitleKey || 'dialog.Ok') }
-
+
);
}