Skip to content

Commit 9a31fdb

Browse files
committed
fix(chart): fix missing element issue
1 parent 32735ca commit 9a31fdb

File tree

1 file changed

+30
-30
lines changed
  • frontend/src/app/pages/ChartWorkbenchPage/components/ChartOperationPanel/components/ChartPresentPanel/components

1 file changed

+30
-30
lines changed

frontend/src/app/pages/ChartWorkbenchPage/components/ChartOperationPanel/components/ChartPresentPanel/components/ChartTypeSelector.tsx

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -84,37 +84,37 @@ const ChartTypeSelector: FC<{
8484
onConfirm={onCreateDownloadDataTask}
8585
>
8686
<AreaChartOutlined />
87-
</TypeSelector>
88-
<TypeSelector
89-
fontSize={FONT_SIZE_HEADING}
90-
className={classnames({ active: type === ChartPresentType.RAW })}
91-
onClick={typeChange(ChartPresentType.RAW)}
92-
>
93-
<TableOutlined />
94-
</TypeSelector>
95-
<TypeSelector
96-
fontSize={FONT_SIZE_HEADING}
97-
className={classnames({ active: type === ChartPresentType.SQL })}
98-
onClick={typeChange(ChartPresentType.SQL)}
99-
>
100-
<ConsoleSqlOutlined />
101-
</TypeSelector>
102-
<TypeSelector
103-
fontSize={FONT_SIZE_HEADING}
104-
className={classnames({ active: type === ChartPresentType.DOWNLOAD })}
87+
</Popconfirm>
88+
</TypeSelector>
89+
<TypeSelector
90+
fontSize={FONT_SIZE_HEADING}
91+
className={classnames({ active: type === ChartPresentType.RAW })}
92+
onClick={typeChange(ChartPresentType.RAW)}
93+
>
94+
<TableOutlined />
95+
</TypeSelector>
96+
<TypeSelector
97+
fontSize={FONT_SIZE_HEADING}
98+
className={classnames({ active: type === ChartPresentType.SQL })}
99+
onClick={typeChange(ChartPresentType.SQL)}
100+
>
101+
<ConsoleSqlOutlined />
102+
</TypeSelector>
103+
<TypeSelector
104+
fontSize={FONT_SIZE_HEADING}
105+
className={classnames({ active: type === ChartPresentType.DOWNLOAD })}
106+
>
107+
<Popconfirm
108+
placement="left"
109+
title={t('downloadForExcel')}
110+
onConfirm={onCreateDownloadDataTask}
105111
>
106-
<Popconfirm
107-
placement="left"
108-
title={t('downloadForExcel')}
109-
onConfirm={onCreateDownloadDataTask}
110-
>
111-
<CloudDownloadOutlined />
112-
</Popconfirm>
113-
</TypeSelector>
114-
</StyledChartTypeSelector>
115-
);
116-
},
117-
);
112+
<CloudDownloadOutlined />
113+
</Popconfirm>
114+
</TypeSelector>
115+
</StyledChartTypeSelector>
116+
);
117+
});
118118

119119
export default ChartTypeSelector;
120120

0 commit comments

Comments
 (0)