@finos/legend-lego 1.2.43 → 1.2.45
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/TabManager.js +2 -2
- package/lib/application/TabManager.js.map +1 -1
- package/lib/data-grid/DataGrid.d.ts +2 -2
- package/lib/data-grid/DataGrid.d.ts.map +1 -1
- package/lib/data-grid/DataGrid.js +6 -2
- package/lib/data-grid/DataGrid.js.map +1 -1
- package/lib/index.css +1 -1
- package/package.json +25 -25
- package/src/application/TabManager.tsx +3 -3
- package/src/data-grid/DataGrid.tsx +6 -7
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { ChevronDownIcon, clsx, ContextMenu, DragPreviewLayer,
|
17
|
+
import { ChevronDownIcon, clsx, ContextMenu, DragPreviewLayer, ControlledDropdownMenu, MenuContent, MenuContentItem, PanelEntryDropZonePlaceholder, TimesIcon, useDragPreviewLayer, } from '@finos/legend-art';
|
18
18
|
import { observer } from 'mobx-react-lite';
|
19
19
|
import { useRef, useCallback } from 'react';
|
20
20
|
import { useDrop, useDrag } from 'react-dnd';
|
@@ -100,7 +100,7 @@ const Tab = observer((props) => {
|
|
100
100
|
});
|
101
101
|
const TabMenu = observer((props) => {
|
102
102
|
const { managerTabState } = props;
|
103
|
-
return (_jsx(
|
103
|
+
return (_jsx(ControlledDropdownMenu, { className: "tab-manager__menu__toggler", title: "Show All Tabs", content: _jsx(MenuContent, { className: "tab-manager__menu", children: managerTabState.tabs.map((tabState) => (_jsxs(MenuContentItem, { className: clsx('tab-manager__menu__item', {
|
104
104
|
'tab-manager__menu__item--active': tabState === managerTabState.currentTab,
|
105
105
|
}), onClick: () => managerTabState.openTab(tabState), children: [_jsx("div", { className: "tab-manager__menu__item__label", children: tabState.label }), _jsx("div", { className: "tab-manager__menu__item__close-btn", onClick: (event) => {
|
106
106
|
// NOTE: prevent default action of dropdown menu
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,
|
1
|
+
{"version":3,"file":"TabManager.js","sourceRoot":"","sources":["../../src/application/TabManager.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,6BAA6B,EAC7B,SAAS,EACT,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAA0B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOrE,MAAM,CAAC,MAAM,wBAAwB,GAAG,kBAAkB,CAAC;AAE3D,MAAM,0BAA0B,GAA4B,CAAC,KAAK,EAAE,EAAE;IACpE,+GAA+G;IAC/G,kBAAkB;IAClB,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QACrD,OAAO;IACT,CAAC;IACD,KAAK,CAAC,eAAe,EAAE,CAAC;IACxB,IAAI,MAAM,CAAC;IACX,qHAAqH;IACrH,qEAAqE;IACrE,yDAAyD;IACzD,6DAA6D;IAC7D,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IACxB,CAAC;SAAM,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,GAAG,CAAC,IAAI,CAAC,GA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BACrC,CAAC,EACD,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,OAAO,YAEb,KAAC,SAAS,KAAG,GACT,KArBD,QAAQ,CAAC,IAAI,CAsBF,CACnB,CAAC,GACU,EAEhB,SAAS,EAAE;YACT,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE;YACzD,eAAe,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE;SAC1D,YAED,KAAC,eAAe,KAAG,GACI,CAC1B,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAChC,CAAC,KAGA,EAAE,EAAE;IACH,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE/C,OAAO,CACL,eAAK,SAAS,EAAC,aAAa,aAC1B,eACE,SAAS,EAAC,sBAAsB,EAChC,OAAO,EAAE,0BAA0B,aAElC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACjC,KAAC,GAAG,IAEF,QAAQ,EAAE,GAAG,EACb,eAAe,EAAE,eAAe,EAChC,WAAW,EAAE,WAAW,IAHnB,GAAG,CAAC,IAAI,CAIb,CACH,CAAC,EACF,KAAC,gBAAgB,IACf,WAAW,EAAE,CAAC,IAAmB,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAC5D,KAAK,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,GAChC,IACE,EACN,KAAC,OAAO,IAAC,eAAe,EAAE,eAAe,GAAI,IACzC,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -13,12 +13,12 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { type
|
16
|
+
import { type AgGridReactProps } from '@ag-grid-community/react';
|
17
17
|
import { type CellRange, type CellMouseOverEvent, type ICellRendererParams, type GridOptions, type ColDef, type ColumnState, type GridApi, type IRowNode, type GetContextMenuItemsParams, type MenuItemDef, type IAggFuncParams } from '@ag-grid-community/core';
|
18
18
|
export declare const communityModules: import("@ag-grid-community/core").Module[];
|
19
19
|
export declare const enterpriseModules: import("@ag-grid-community/core").Module[];
|
20
20
|
export declare const allModules: import("@ag-grid-community/core").Module[];
|
21
|
-
export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData>
|
21
|
+
export declare function DataGrid<TData = unknown>(props: AgGridReactProps<TData>): JSX.Element;
|
22
22
|
export declare const configureDataGridComponent: () => void;
|
23
23
|
export type { CellRange as DataGridCellRange, CellMouseOverEvent as DataGridCellMouseOverEvent, ICellRendererParams as DataGridCellRendererParams, GridOptions as DataGridOptions, ColDef as DataGridColumnDefinition, ColumnState as DataGridColumnState, GridApi as DataGridApi, IRowNode as DataGridIRowNode, GetContextMenuItemsParams as DataGridGetContextMenuItemsParams, MenuItemDef as DataGridMenuItemDef, IAggFuncParams as DataGridIAggFuncParams, };
|
24
24
|
//# sourceMappingURL=DataGrid.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAa9E,OAAO,EACL,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,yBAAyB,EAC9B,KAAK,WAAW,EAChB,KAAK,cAAc,EAEpB,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,gBAAgB,4CAA8C,CAAC;AAE5E,eAAO,MAAM,iBAAiB,4CAW7B,CAAC;AAEF,eAAO,MAAM,UAAU,4CAA6C,CAAC;AAIrE,wBAAgB,QAAQ,CAAC,KAAK,GAAG,OAAO,EACtC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAC7B,GAAG,CAAC,OAAO,CAmBb;AAED,eAAO,MAAM,0BAA0B,QAAO,IAE7C,CAAC;AAEF,YAAY,EACV,SAAS,IAAI,iBAAiB,EAC9B,kBAAkB,IAAI,0BAA0B,EAChD,mBAAmB,IAAI,0BAA0B,EACjD,WAAW,IAAI,eAAe,EAC9B,MAAM,IAAI,wBAAwB,EAClC,WAAW,IAAI,mBAAmB,EAClC,OAAO,IAAI,WAAW,EACtB,QAAQ,IAAI,gBAAgB,EAC5B,yBAAyB,IAAI,iCAAiC,EAC9D,WAAW,IAAI,mBAAmB,EAClC,cAAc,IAAI,sBAAsB,GACzC,CAAC"}
|
@@ -14,7 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
* See the License for the specific language governing permissions and
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
|
-
import { AgGridReact
|
17
|
+
import { AgGridReact } from '@ag-grid-community/react';
|
18
18
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
19
19
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
20
20
|
import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
|
@@ -59,7 +59,11 @@ export function DataGrid(props) {
|
|
59
59
|
// seem to arise when the scrollbar visibility changes as row data is being supplied
|
60
60
|
// one way to resolve this problem is to set `alwaysShowVerticalScroll={true}`
|
61
61
|
// See https://github.com/ag-grid/ag-grid/issues/2588
|
62
|
-
suppressBrowserResizeObserver: true, ...props,
|
62
|
+
suppressBrowserResizeObserver: true, ...props,
|
63
|
+
// NOTE: for test, we don't want to handle the error messages outputed by ag-grid so
|
64
|
+
// we disable enterprise features for now
|
65
|
+
// eslint-disable-next-line no-process-env
|
66
|
+
modules: process.env.NODE_ENV === 'test' ? communityModules : allModules }));
|
63
67
|
}
|
64
68
|
export const configureDataGridComponent = () => {
|
65
69
|
ModuleRegistry.registerModules([ClientSideRowModelModule]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"DataGrid.js","sourceRoot":"","sources":["../../src/data-grid/DataGrid.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,WAAW,EAAyB,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAYL,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,wBAAwB,EAAE,eAAe,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,eAAe;IACf,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;IACtB,UAAU;IACV,oBAAoB;IACpB,iBAAiB;IACjB,wBAAwB;IACxB,aAAa;IACb,eAAe;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAIrE,MAAM,UAAU,QAAQ,CACtB,KAA8B;IAE9B,IAAI,eAAe,EAAE,CAAC;QACpB,cAAc,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,CACL,KAAC,WAAW;IACV,6FAA6F;IAC7F,2FAA2F;IAC3F,oFAAoF;IACpF,8EAA8E;IAC9E,qDAAqD;;QAJrD,6FAA6F;QAC7F,2FAA2F;QAC3F,oFAAoF;QACpF,8EAA8E;QAC9E,qDAAqD;QACrD,6BAA6B,EAAE,IAAI,KAC/B,KAAK;QACT,oFAAoF;QACpF,yCAAyC;QACzC,0CAA0C;QAC1C,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,GACxE,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAS,EAAE;IACnD,cAAc,CAAC,eAAe,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-lego",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.45",
|
4
4
|
"description": "Legend shared advanced application components and building blocks",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -47,30 +47,30 @@
|
|
47
47
|
"test:watch": "jest --watch"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@ag-grid-community/client-side-row-model": "
|
51
|
-
"@ag-grid-community/core": "
|
52
|
-
"@ag-grid-community/csv-export": "
|
53
|
-
"@ag-grid-community/react": "
|
54
|
-
"@ag-grid-community/styles": "
|
55
|
-
"@ag-grid-enterprise/clipboard": "
|
56
|
-
"@ag-grid-enterprise/column-tool-panel": "
|
57
|
-
"@ag-grid-enterprise/core": "
|
58
|
-
"@ag-grid-enterprise/excel-export": "
|
59
|
-
"@ag-grid-enterprise/filter-tool-panel": "
|
60
|
-
"@ag-grid-enterprise/menu": "
|
61
|
-
"@ag-grid-enterprise/range-selection": "
|
62
|
-
"@ag-grid-enterprise/row-grouping": "
|
63
|
-
"@ag-grid-enterprise/server-side-row-model": "
|
64
|
-
"@ag-grid-enterprise/side-bar": "
|
65
|
-
"@ag-grid-enterprise/status-bar": "
|
66
|
-
"@finos/legend-application": "15.1.
|
67
|
-
"@finos/legend-art": "7.1.
|
68
|
-
"@finos/legend-graph": "31.10.
|
69
|
-
"@finos/legend-shared": "10.0.
|
50
|
+
"@ag-grid-community/client-side-row-model": "32.0.0",
|
51
|
+
"@ag-grid-community/core": "32.0.0",
|
52
|
+
"@ag-grid-community/csv-export": "32.0.0",
|
53
|
+
"@ag-grid-community/react": "32.0.0",
|
54
|
+
"@ag-grid-community/styles": "32.0.0",
|
55
|
+
"@ag-grid-enterprise/clipboard": "32.0.0",
|
56
|
+
"@ag-grid-enterprise/column-tool-panel": "32.0.0",
|
57
|
+
"@ag-grid-enterprise/core": "32.0.0",
|
58
|
+
"@ag-grid-enterprise/excel-export": "32.0.0",
|
59
|
+
"@ag-grid-enterprise/filter-tool-panel": "32.0.0",
|
60
|
+
"@ag-grid-enterprise/menu": "32.0.0",
|
61
|
+
"@ag-grid-enterprise/range-selection": "32.0.0",
|
62
|
+
"@ag-grid-enterprise/row-grouping": "32.0.0",
|
63
|
+
"@ag-grid-enterprise/server-side-row-model": "32.0.0",
|
64
|
+
"@ag-grid-enterprise/side-bar": "32.0.0",
|
65
|
+
"@ag-grid-enterprise/status-bar": "32.0.0",
|
66
|
+
"@finos/legend-application": "15.1.14",
|
67
|
+
"@finos/legend-art": "7.1.42",
|
68
|
+
"@finos/legend-graph": "31.10.9",
|
69
|
+
"@finos/legend-shared": "10.0.44",
|
70
70
|
"@types/css-font-loading-module": "0.0.13",
|
71
71
|
"@types/react": "18.3.3",
|
72
72
|
"@types/react-dom": "18.3.0",
|
73
|
-
"mobx": "6.
|
73
|
+
"mobx": "6.13.0",
|
74
74
|
"mobx-react-lite": "4.0.7",
|
75
75
|
"monaco-editor": "0.50.0",
|
76
76
|
"react": "18.3.1",
|
@@ -78,15 +78,15 @@
|
|
78
78
|
"react-dom": "18.3.1"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
|
-
"@finos/legend-dev-utils": "2.1.
|
81
|
+
"@finos/legend-dev-utils": "2.1.12",
|
82
82
|
"@jest/globals": "29.7.0",
|
83
83
|
"cross-env": "7.0.3",
|
84
84
|
"eslint": "8.57.0",
|
85
85
|
"jest": "29.7.0",
|
86
86
|
"npm-run-all": "4.1.5",
|
87
|
-
"rimraf": "5.0.
|
87
|
+
"rimraf": "5.0.8",
|
88
88
|
"sass": "1.77.6",
|
89
|
-
"typescript": "5.5.
|
89
|
+
"typescript": "5.5.3"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
92
92
|
"react": "^18.0.0"
|
@@ -19,7 +19,7 @@ import {
|
|
19
19
|
clsx,
|
20
20
|
ContextMenu,
|
21
21
|
DragPreviewLayer,
|
22
|
-
|
22
|
+
ControlledDropdownMenu,
|
23
23
|
MenuContent,
|
24
24
|
MenuContentItem,
|
25
25
|
PanelEntryDropZonePlaceholder,
|
@@ -212,7 +212,7 @@ const Tab = observer(
|
|
212
212
|
const TabMenu = observer((props: { managerTabState: TabManagerState }) => {
|
213
213
|
const { managerTabState } = props;
|
214
214
|
return (
|
215
|
-
<
|
215
|
+
<ControlledDropdownMenu
|
216
216
|
className="tab-manager__menu__toggler"
|
217
217
|
title="Show All Tabs"
|
218
218
|
content={
|
@@ -251,7 +251,7 @@ const TabMenu = observer((props: { managerTabState: TabManagerState }) => {
|
|
251
251
|
}}
|
252
252
|
>
|
253
253
|
<ChevronDownIcon />
|
254
|
-
</
|
254
|
+
</ControlledDropdownMenu>
|
255
255
|
);
|
256
256
|
});
|
257
257
|
|
@@ -14,11 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
AgGridReact,
|
19
|
-
type AgReactUiProps,
|
20
|
-
type AgGridReactProps,
|
21
|
-
} from '@ag-grid-community/react';
|
17
|
+
import { AgGridReact, type AgGridReactProps } from '@ag-grid-community/react';
|
22
18
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
23
19
|
import { CsvExportModule } from '@ag-grid-community/csv-export';
|
24
20
|
import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
|
@@ -67,7 +63,7 @@ export const allModules = communityModules.concat(enterpriseModules);
|
|
67
63
|
declare const AG_GRID_LICENSE: string;
|
68
64
|
|
69
65
|
export function DataGrid<TData = unknown>(
|
70
|
-
props: AgGridReactProps<TData
|
66
|
+
props: AgGridReactProps<TData>,
|
71
67
|
): JSX.Element {
|
72
68
|
if (AG_GRID_LICENSE) {
|
73
69
|
LicenseManager.setLicenseKey(AG_GRID_LICENSE);
|
@@ -81,7 +77,10 @@ export function DataGrid<TData = unknown>(
|
|
81
77
|
// See https://github.com/ag-grid/ag-grid/issues/2588
|
82
78
|
suppressBrowserResizeObserver={true}
|
83
79
|
{...props}
|
84
|
-
|
80
|
+
// NOTE: for test, we don't want to handle the error messages outputed by ag-grid so
|
81
|
+
// we disable enterprise features for now
|
82
|
+
// eslint-disable-next-line no-process-env
|
83
|
+
modules={process.env.NODE_ENV === 'test' ? communityModules : allModules}
|
85
84
|
/>
|
86
85
|
);
|
87
86
|
}
|