Skip to content

Commit 40ae190

Browse files
committed
clean up
1 parent 2dab9c7 commit 40ae190

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

packages/compass-data-modeling/src/components/diagram-editor-toolbar.spec.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function renderDiagramEditorToolbar(
1212
step="EDITING"
1313
hasUndo={true}
1414
hasRedo={true}
15-
onDownloadClick={() => {}}
1615
onUndoClick={() => {}}
1716
onRedoClick={() => {}}
1817
onExportClick={() => {}}
@@ -72,13 +71,4 @@ describe('DiagramEditorToolbar', function () {
7271
userEvent.click(exportButton);
7372
expect(exportSpy).to.have.been.calledOnce;
7473
});
75-
76-
it('renders download button and calls onDownloadClick', function () {
77-
const downloadSpy = sinon.spy();
78-
renderDiagramEditorToolbar({ onDownloadClick: downloadSpy });
79-
const downloadButton = screen.getByRole('button', { name: 'Download' });
80-
expect(downloadButton).to.exist;
81-
userEvent.click(downloadButton);
82-
expect(downloadSpy).to.have.been.calledOnce;
83-
});
8474
});

packages/compass-data-modeling/src/components/export-diagram-modal.tsx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
css,
55
Icon,
66
Label,
7-
Link,
87
Modal,
98
ModalBody,
109
ModalFooter,
@@ -26,8 +25,6 @@ import type { DataModelingState } from '../store/reducer';
2625
import { useDiagram } from '@mongodb-js/diagramming';
2726
import type { DiagramInstance } from '@mongodb-js/diagramming';
2827

29-
const nbsp = '\u00a0';
30-
3128
const modelBodyStyles = css({
3229
paddingTop: spacing[600],
3330
});
@@ -76,22 +73,7 @@ const ExportDiagramModal = ({
7673
setOpen={onCloseClick}
7774
data-testid="export-diagram-modal"
7875
>
79-
<ModalHeader
80-
title="Export data model"
81-
subtitle={
82-
<div>
83-
Export your data model as either an image or JSON file.
84-
{nbsp}
85-
<Link
86-
href="https://www.mongodb.com/docs/manual/data-modeling//"
87-
target="_blank"
88-
rel="noopener noreferrer"
89-
>
90-
Learn more
91-
</Link>
92-
</div>
93-
}
94-
/>
76+
<ModalHeader title="Export data model" />
9577
<ModalBody className={modelBodyStyles}>
9678
<div className={contentContainerStyles}>
9779
<Label htmlFor="">Select file format:</Label>

0 commit comments

Comments
 (0)