Skip to content

Commit

Permalink
Remove redundant string types from EmptyState
Browse files Browse the repository at this point in the history
  • Loading branch information
kgabryje committed Feb 14, 2022
1 parent d4bf481 commit 89f113d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions superset-frontend/src/components/EmptyState/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ export enum EmptyStateSize {
}

export interface EmptyStateSmallProps {
title: string | ReactNode;
description?: string | ReactNode;
image: string | ReactNode;
title: ReactNode;
description?: ReactNode;
image: ReactNode;
}

export interface EmptyStateProps extends EmptyStateSmallProps {
buttonText?: string | ReactNode;
buttonText?: ReactNode;
buttonAction?: React.MouseEventHandler<HTMLElement>;
}

export interface ImageContainerProps {
image: string | ReactNode;
image: ReactNode;
size: EmptyStateSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const StyledHeader = styled.div`
grid-column: 2;
grid-row: 1;
position: sticky;
top: 0px;
top: 0;
z-index: 100;
`;

Expand Down Expand Up @@ -164,7 +164,7 @@ const StyledDashboardContent = styled.div<{
.grid-container {
/* without this, the grid will not get smaller upon toggling the builder panel on */
width: 0px;
width: 0;
flex: 1;
position: relative;
margin-top: ${({ theme }) => theme.gridUnit * 6}px;
Expand Down

0 comments on commit 89f113d

Please sign in to comment.