diff --git a/superset-frontend/src/components/EmptyState/index.tsx b/superset-frontend/src/components/EmptyState/index.tsx index a4d41f2e3bd78..e27c72894c15e 100644 --- a/superset-frontend/src/components/EmptyState/index.tsx +++ b/superset-frontend/src/components/EmptyState/index.tsx @@ -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; } export interface ImageContainerProps { - image: string | ReactNode; + image: ReactNode; size: EmptyStateSize; } diff --git a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx index 23134a01fd387..577351a389dbc 100644 --- a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx +++ b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx @@ -134,7 +134,7 @@ const StyledHeader = styled.div` grid-column: 2; grid-row: 1; position: sticky; - top: 0px; + top: 0; z-index: 100; `; @@ -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;