You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by su...@apache.org on 2021/07/01 08:44:24 UTC
[superset] 02/02: use gallery directly in add slice view
This is an automated email from the ASF dual-hosted git repository.
suddjian pushed a commit to branch viz-gallery-component
in repository https://gitbox.apache.org/repos/asf/superset.git
commit f127320adb4d4490f44d0d1c6d21baa02c316b28
Author: David Aaron Suddjian <aa...@gmail.com>
AuthorDate: Thu Jul 1 01:43:22 2021 -0700
use gallery directly in add slice view
---
superset-frontend/src/addSlice/AddSliceContainer.tsx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/superset-frontend/src/addSlice/AddSliceContainer.tsx b/superset-frontend/src/addSlice/AddSliceContainer.tsx
index 22230cd..cc9414a 100644
--- a/superset-frontend/src/addSlice/AddSliceContainer.tsx
+++ b/superset-frontend/src/addSlice/AddSliceContainer.tsx
@@ -21,7 +21,7 @@ import Button from 'src/components/Button';
import Select from 'src/components/Select';
import { styled, t } from '@superset-ui/core';
-import VizTypeControl from '../explore/components/controls/VizTypeControl';
+import VizTypeGallery from 'src/explore/components/controls/VizTypeControl/VizTypeGallery';
interface Datasource {
label: string;
@@ -133,11 +133,9 @@ export default class AddSliceContainer extends React.PureComponent<
<br />
<div>
<p>{t('Choose a visualization type')}</p>
- <VizTypeControl
- name="select-vis-type"
+ <VizTypeGallery
onChange={this.changeVisType}
value={this.state.visType}
- labelType="primary"
/>
</div>
<br />