Select the parameters to group by
diff --git a/src/components/data-exploration/heatmap/HeatmapSettings.jsx b/src/components/data-exploration/heatmap/HeatmapSettings.jsx
index fd29d42539..ca128009a0 100644
--- a/src/components/data-exploration/heatmap/HeatmapSettings.jsx
+++ b/src/components/data-exploration/heatmap/HeatmapSettings.jsx
@@ -3,49 +3,53 @@ import {
SettingOutlined,
} from '@ant-design/icons';
import {
- Button, Dropdown, Menu, Tooltip,
+ Button, Dropdown, Tooltip
} from 'antd';
import PropTypes from 'prop-types';
import HeatmapMetadataTrackSettings from 'components/data-exploration/heatmap/HeatmapMetadataTrackSettings';
import HeatmapGroupBySettings from 'components/data-exploration/heatmap/HeatmapGroupBySettings';
-import NoStyleAntdMenuItem from 'components/NoStyleAntdMenuItem';
-
-import styles from 'utils/css/no-style-menu-item.module.css';
-
-const { SubMenu } = Menu;
-
const HeatmapSettings = (props) => {
const { componentType } = props;
- const renderMenu = () => (
-
- );
+ const menuItems = [
+ {
+ label: 'Metadata tracks', key: 'metadataTracks', children: [
+ {
+ label: (
),
+ key: "metadataTracksChild",
+ }
+ ]
+ },
+ {
+ label: 'Group by', key: 'groupBy', children: [
+ {
+ label: (
),
+ key: "groupByChild",
+ }
+ ]
+ },
+ ];
return (
-
-
- }
- // these classes are added so that the settings button
- // is the same style as the remove button
- className='bp3-button bp3-minimal'
- />
-
-
+ <>
+
+
+ }
+ className='bp3-button bp3-minimal'
+ />
+
+
+ >
);
};
diff --git a/src/components/data-management/AddMetadataButton.jsx b/src/components/data-management/AddMetadataButton.jsx
index 70f06f1f98..cf456fdd5c 100644
--- a/src/components/data-management/AddMetadataButton.jsx
+++ b/src/components/data-management/AddMetadataButton.jsx
@@ -1,7 +1,7 @@
/* eslint-disable no-param-reassign */
import React, { useState } from 'react';
import {
- Menu, Dropdown, Button, Tooltip,
+ Dropdown, Button, Tooltip,
} from 'antd';
import PropTypes from 'prop-types';
@@ -67,38 +67,43 @@ const AddMetadataButton = ({ samplesTableRef }) => {
return (
<>
(
-