Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolagigic committed Jan 5, 2021
1 parent ef05979 commit 6f54d14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 5 additions & 2 deletions superset-frontend/src/common/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ interface CardProps extends AntdCardProps {
padded?: boolean;
}

const Card = styled(({ padded, ...props }: CardProps) => <AntdCard {...props} />)`
const Card = styled(({ padded, ...props }: CardProps) => (
<AntdCard {...props} />
))`
background-color: ${({ theme }) => theme.colors.grayscale.light4};
border-radius: ${({ theme }) => theme.borderRadius}px;
.ant-card-body {
padding: ${({ padded, theme }) => padded ? theme.gridUnit * 4 : theme.gridUnit}px;
padding: ${({ padded, theme }) =>
padded ? theme.gridUnit * 4 : theme.gridUnit}px;
}
`;

Expand Down
9 changes: 1 addition & 8 deletions superset-frontend/src/datasource/DatasourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,7 @@ StackedField.propTypes = {
};

function FormContainer({ children }) {
return (
// <Card style={{ marginTop: 20 }} bodyStyle={{ padding: 15 }}>
// {children}
// </Card>
<Card padded>
{children}
</Card>
);
return <Card padded>{children}</Card>;
}

FormContainer.propTypes = {
Expand Down

0 comments on commit 6f54d14

Please sign in to comment.