Skip to content

Commit 12c7d6e

Browse files
committed
npm run check
1 parent 67a6999 commit 12c7d6e

File tree

7 files changed

+510
-161
lines changed

7 files changed

+510
-161
lines changed

package-lock.json

Lines changed: 505 additions & 147 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ export const StageOperatorSelect = ({
7272
clearable={false}
7373
data-testid="stage-operator-combobox"
7474
className={comboboxStyles}
75-
// Used for testing to access the popover for a stage
76-
popoverClassName={`mongodb-compass-stage-operator-combobox-${index}`}
7775
>
7876
{stages.map((stage, index) => (
7977
<ComboboxOption

packages/compass-components/src/components/combobox-with-custom-option.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@ import React, { useState, useMemo } from 'react';
22
import { Combobox } from './leafygreen';
33
import type { ComboboxProps } from '@leafygreen-ui/combobox';
44

5-
// TODO: Make this required
6-
type SelectValueType<T extends boolean> = NonNullable<
7-
ComboboxProps<T>['value']
8-
>;
9-
type OnChangeType<T extends boolean> = NonNullable<
10-
ComboboxProps<T>['onChange']
11-
>;
5+
type SelectValueType<T extends boolean> = Required<ComboboxProps<T>>['value'];
6+
type OnChangeType<T extends boolean> = Required<ComboboxProps<T>>['onChange'];
127

138
type ComboboxWithCustomOptionProps<T extends boolean, K> = ComboboxProps<T> & {
14-
onChange: OnChangeType<T>;
159
options: K[];
1610
renderOption: (option: K, index: number, isCustom: boolean) => JSX.Element;
1711
};

packages/compass-components/src/components/combobox-with-custom-options.spec.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const renderCombobox = (
2121
renderOption={(o, i) => {
2222
return <ComboboxOption key={i} value={o.value} />;
2323
}}
24-
onChange={() => {}}
2524
{...props}
2625
/>
2726
);

packages/compass-components/src/components/interactive-popover.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ function InteractivePopover<TriggerElement extends HTMLElement>({
172172
justify={justify ?? 'start'}
173173
active={open}
174174
adjustOnMutation
175-
usePortal
175+
renderMode="portal"
176176
spacing={spacing ?? 0}
177177
className={className}
178178
refEl={triggerRef}

packages/compass-components/src/components/tab-nav-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function TabNavBar({
7171
data-testid={dataTestId}
7272
aria-label={ariaLabel}
7373
className="test-tab-nav-bar-tabs"
74-
setSelected={onTabClicked}
74+
setSelected={(x) => onTabClicked(x as number)}
7575
selected={activeTabIndex}
7676
>
7777
{tabs.map(({ name, title }, idx) => {

packages/compass-workspaces/src/stores/workspaces.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as workspacesSlice from './workspaces';
66
import { _bulkTabsClose } from './workspaces';
77
import { TestMongoDBInstanceManager } from '@mongodb-js/compass-app-stores/provider';
88
import type { ConnectionInfo } from '../../../connection-info/dist';
9-
import type { WorkspaceTab } from '../../dist';
9+
import type { WorkspaceTab } from '../stores/workspaces';
1010
import { setTabDestroyHandler } from '../components/workspace-close-handler';
1111
import { createPluginTestHelpers } from '@mongodb-js/testing-library-compass';
1212

0 commit comments

Comments
 (0)