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 e7f21b72899b0119c534b40d0dc936333378ffe2
Author: David Aaron Suddjian <aasuddj...@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 />

Reply via email to