Skip to content

Commit 67cc3a1

Browse files
authored
fix(aggregations): wrap aggregations plugin in confirmation modal (#4105)
1 parent 7d65b08 commit 67cc3a1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/compass-aggregations/src/plugin.jsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
33
import Aggregations from './components/aggregations';
44
import { Provider } from 'react-redux';
55
import configureStore from './stores';
6+
import { ConfirmationModalArea } from '@mongodb-js/compass-components';
67

78
class Plugin extends Component {
89
static displayName = 'AggregationsPlugin';
@@ -27,13 +28,15 @@ class Plugin extends Component {
2728
*/
2829
render() {
2930
return (
30-
<Provider store={this.props.store}>
31-
<Aggregations
32-
showExportButton={this.props.showExportButton}
33-
showRunButton={this.props.showRunButton}
34-
showExplainButton={this.props.showExplainButton}
35-
/>
36-
</Provider>
31+
<ConfirmationModalArea>
32+
<Provider store={this.props.store}>
33+
<Aggregations
34+
showExportButton={this.props.showExportButton}
35+
showRunButton={this.props.showRunButton}
36+
showExplainButton={this.props.showExplainButton}
37+
/>
38+
</Provider>
39+
</ConfirmationModalArea>
3740
);
3841
}
3942
}

0 commit comments

Comments
 (0)