File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
compass-generative-ai/src/components Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import {
3+ Body ,
4+ MarketingModal as LeafyGreenMarketingModal ,
5+ } from '../leafygreen' ;
6+ import { withStackedComponentStyles } from '../../hooks/use-stacked-component' ;
7+
8+ function MarketingModal ( {
9+ children,
10+ ...props
11+ } : React . ComponentProps < typeof LeafyGreenMarketingModal > ) : React . ReactElement {
12+ return (
13+ < LeafyGreenMarketingModal { ...props } >
14+ < Body as = "div" > { children } </ Body >
15+ </ LeafyGreenMarketingModal >
16+ ) ;
17+ }
18+
19+ export default withStackedComponentStyles ( MarketingModal ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export {
1414 cache ,
1515} from '@leafygreen-ui/emotion' ;
1616import ConfirmationModal from './components/modals/confirmation-modal' ;
17+ import MarketingModal from './components/modals/marketing-modal' ;
1718import type {
1819 ElectronFileDialogOptions ,
1920 ElectronShowFileDialogProvider ,
@@ -131,6 +132,7 @@ export {
131132 defaultSidebarWidth ,
132133 createElectronFileInputBackend ,
133134 createJSDomFileInputDummyBackend ,
135+ MarketingModal ,
134136} ;
135137export {
136138 useFocusState ,
Original file line number Diff line number Diff line change 77 css ,
88 spacing ,
99 palette ,
10- MarketingModal ,
1110 Theme ,
1211 useDarkMode ,
12+ MarketingModal ,
1313} from '@mongodb-js/compass-components' ;
1414import { AiImageBanner } from './ai-image-banner' ;
1515import { closeOptInModal , optIn } from '../store/atlas-optin-reducer' ;
You can’t perform that action at this time.
0 commit comments