Skip to content

Commit

Permalink
Refactor: Removed redundant styles from index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
LevisNgigi committed Dec 2, 2024
1 parent 5c3f744 commit 0b79f6c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions superset-frontend/src/components/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function Alert(props: AlertProps) {
} = props;

const theme = useTheme();
const { colors, gridUnit } = theme;
const { colors } = theme;
const { alert: alertColor, error, info, success } = colors;

let baseColor = info;
Expand Down Expand Up @@ -76,11 +76,7 @@ export default function Alert(props: AlertProps) {
message={children || 'Default message'}
description={description}
style={{
marginBottom: roomBelow ? gridUnit * 4 : 0,
padding: `${gridUnit * 2}px ${gridUnit * 3}px`,
alignItems: 'flex-start',
border: `1px solid ${baseColor.base}`,
backgroundColor: baseColor.light2,
marginBottom: roomBelow ? theme.gridUnit * 4 : 0,
}}
{...rest}
/>
Expand Down

0 comments on commit 0b79f6c

Please sign in to comment.