File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
compass-data-modeling/src/components Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ export { Variant as BannerVariant } from '@leafygreen-ui/banner';
8282export {
8383 Size as ButtonSize ,
8484 Variant as ButtonVariant ,
85+ type ButtonProps ,
8586} from '@leafygreen-ui/button' ;
8687export { SplitButton } from '@leafygreen-ui/split-button' ;
8788
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { Button , FileSelector } from '@mongodb-js/compass-components' ;
2+ import {
3+ Button ,
4+ type ButtonProps ,
5+ FileSelector ,
6+ } from '@mongodb-js/compass-components' ;
37
4- type importDiagramButtonProps = Omit <
5- React . ComponentProps < typeof Button > ,
6- 'onClick'
7- > & {
8+ type ImportDiagramButtonProps = Omit < ButtonProps , 'onClick' > & {
89 onImportDiagram : ( file : File ) => void ;
910} ;
1011
1112export const ImportDiagramButton = ( {
1213 onImportDiagram,
1314 ...buttonProps
14- } : importDiagramButtonProps ) => {
15+ } : ImportDiagramButtonProps ) => {
1516 return (
1617 < FileSelector
1718 id = "import-diagram-file-input"
You can’t perform that action at this time.
0 commit comments