kgabryje commented on code in PR #19558:
URL: https://github.com/apache/superset/pull/19558#discussion_r847186196
##########
superset-frontend/src/explore/components/ControlPanelsContainer.tsx:
##########
@@ -431,6 +466,32 @@ export const ControlPanelsContainer = (props:
ControlPanelsContainerProps) => {
[handleClearFormClick, handleContinueClick, hasControlsTransferred],
);
+ const dataTabTitle = useMemo(
+ () => (
+ <>
+ <span>{t('Data')}</span>
+ {props.errorMessage && (
+ <span
+ css={(theme: SupersetTheme) => css`
+ font-size: ${theme.typography.sizes.xs}px;
+ margin-left: ${theme.gridUnit * 2}px;
+ `}
+ >
+ {' '}
+ <Tooltip
+ id="query-error-tooltip"
+ placement="right"
+ title={props.errorMessage}
+ >
+ <i className="fa fa-exclamation-circle text-danger fa-lg" />
Review Comment:
That's the same icon as the one that's displayed next to controls. I agree
that we should drop font-awesome icons in favor of antd, but changing that here
would also require changing the danger icon in other places in control panel.
Let's do that in a separate PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]