From 69f2af9fb6ba4595732c7cfba3af15bed3e7665c Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Mon, 26 Apr 2021 22:13:49 -0700 Subject: [PATCH] refactor(addslicecontainer): move slice container panel from bootstrap panel to ant-d (#14035) * slice boostrap panel to ant-d * remove panel * remove space * fix lint * fix addslicecontainer * Update AddSliceContainer.tsx --- .../src/addSlice/AddSliceContainer.tsx | 129 +++++++++--------- 1 file changed, 65 insertions(+), 64 deletions(-) diff --git a/superset-frontend/src/addSlice/AddSliceContainer.tsx b/superset-frontend/src/addSlice/AddSliceContainer.tsx index 9e99c20f3..22230cd0a 100644 --- a/superset-frontend/src/addSlice/AddSliceContainer.tsx +++ b/superset-frontend/src/addSlice/AddSliceContainer.tsx @@ -17,10 +17,9 @@ * under the License. */ import React from 'react'; -import { Panel } from 'react-bootstrap'; import Button from 'src/components/Button'; import Select from 'src/components/Select'; -import { t } from '@superset-ui/core'; +import { styled, t } from '@superset-ui/core'; import VizTypeControl from '../explore/components/controls/VizTypeControl'; @@ -41,6 +40,14 @@ export type AddSliceContainerState = { }; const styleSelectContainer = { width: 600, marginBottom: '10px' }; +const StyledContainer = styled.div` + border-radius: ${({ theme }) => theme.gridUnit}px; + background-color: ${({ theme }) => theme.colors.grayscale.light5}; + padding: ${({ theme }) => theme.gridUnit * 6}px; + h3 { + padding-bottom: ${({ theme }) => theme.gridUnit * 3}px; + } +`; export default class AddSliceContainer extends React.PureComponent< AddSliceContainerProps, @@ -88,69 +95,63 @@ export default class AddSliceContainer extends React.PureComponent< render() { return ( -
- - -

{t('Create a new chart')}

-
- -
-

{t('Choose a dataset')}

-
- +
+ + {t( + 'If the dataset you are looking for is not available in the list, follow the instructions on how to add it in the Superset tutorial.', + )}{' '} + - {t('Create new chart')} - -
-
- - -
+ + + +
+
+
+

{t('Choose a visualization type')}

+ +
+
+
+ +
+
+ ); } }