Skip to content

Commit 4eefa08

Browse files
committed
Revert use of PolymorphicProps
1 parent d5d4c97 commit 4eefa08

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/compass-components/src/components/leafygreen.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ import { InfoSprinkle } from '@leafygreen-ui/info-sprinkle';
3232
import Modal, { Footer as ModalFooter } from '@leafygreen-ui/modal';
3333
import MarketingModal from '@leafygreen-ui/marketing-modal';
3434
import { Pipeline, Stage } from '@leafygreen-ui/pipeline';
35-
export type {
36-
InferredPolymorphicProps,
37-
PolymorphicProps,
38-
} from '@leafygreen-ui/polymorphic';
3935
import Popover from '@leafygreen-ui/popover';
4036
import { RadioBox, RadioBoxGroup } from '@leafygreen-ui/radio-box-group';
4137
import { Radio, RadioGroup } from '@leafygreen-ui/radio-group';

packages/compass-connections-navigation/src/connect-button-with-menu.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
SplitButton,
77
type GlyphName,
88
type ItemComponentProps,
9-
type PolymorphicProps,
109
type MenuItemProps,
1110
} from '@mongodb-js/compass-components';
1211
import type { Actions } from './constants';
@@ -18,7 +17,7 @@ const menuItemStyles = css({
1817
type ConnectMenuItemProps = {
1918
action: Actions;
2019
glyph: GlyphName;
21-
} & PolymorphicProps<'button', Omit<MenuItemProps, 'glyph'>>;
20+
} & Omit<MenuItemProps, 'glyph'>;
2221

2322
function ConnectMenuItem({ action, glyph, ...rest }: ConnectMenuItemProps) {
2423
return (

0 commit comments

Comments
 (0)