mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
refactor(Menu): Use items prop instead of deprecated Menu.Item HOC (#32587)
This commit is contained in:
committed by
GitHub
parent
527c8de773
commit
d15b0e4f6d
@@ -111,16 +111,18 @@ const SaveQuery = ({
|
||||
database?.allows_virtual_table_explore !== undefined;
|
||||
|
||||
const overlayMenu = (
|
||||
<Menu>
|
||||
<Menu.Item
|
||||
onClick={() => {
|
||||
logAction(LOG_ACTIONS_SQLLAB_CREATE_CHART, {});
|
||||
setShowSaveDatasetModal(true);
|
||||
}}
|
||||
>
|
||||
{t('Save dataset')}
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
<Menu
|
||||
items={[
|
||||
{
|
||||
label: t('Save dataset'),
|
||||
key: 'save-dataset',
|
||||
onClick: () => {
|
||||
logAction(LOG_ACTIONS_SQLLAB_CREATE_CHART, {});
|
||||
setShowSaveDatasetModal(true);
|
||||
},
|
||||
},
|
||||
]}
|
||||
/>
|
||||
);
|
||||
|
||||
const queryPayload = () => ({
|
||||
|
||||
Reference in New Issue
Block a user