Skip to content

Commit

Permalink
replace to marginRight
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpark committed Jul 20, 2023
1 parent 3c0c210 commit e5e0358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion superset-frontend/src/components/TableSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const TableOption = ({ table }: { table: Table }) => {
<WarningIconWithTooltip
warningMarkdown={extra.warning_markdown}
size="l"
indentSize={0.5}
marginRight={4}
/>
)}
{value}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ import { Tooltip } from 'src/components/Tooltip';
export interface WarningIconWithTooltipProps {
warningMarkdown: string;
size?: IconType['iconSize'];
indentSize?: number;
marginRight?: number;
}

function WarningIconWithTooltip({
warningMarkdown,
size,
indentSize = 2,
marginRight,
}: WarningIconWithTooltipProps) {
const theme = useTheme();
return (
Expand All @@ -41,7 +41,7 @@ function WarningIconWithTooltip({
<Icons.AlertSolid
iconColor={theme.colors.alert.base}
iconSize={size}
css={{ marginRight: theme.gridUnit * indentSize }}
css={{ marginRight: marginRight ?? theme.gridUnit * 2 }}
/>
</Tooltip>
);
Expand Down

0 comments on commit e5e0358

Please sign in to comment.