diff --git a/static/app/components/layouts/thirds.tsx b/static/app/components/layouts/thirds.tsx index 3f6483b11b9d79..1fc636239e2957 100644 --- a/static/app/components/layouts/thirds.tsx +++ b/static/app/components/layouts/thirds.tsx @@ -1,4 +1,4 @@ -import {useContext, type HTMLAttributes} from 'react'; +import {useContext} from 'react'; import {css} from '@emotion/react'; import styled from '@emotion/styled'; @@ -200,7 +200,7 @@ export const Body = styled((props: ContainerProps<'div'> & {noRowGap?: boolean}) } `; -interface MainProps extends HTMLAttributes { +export interface MainProps extends ContainerProps { children: React.ReactNode; /** * Set the width of the main content. diff --git a/static/app/views/explore/components/viewportConstrainedPage.tsx b/static/app/views/explore/components/viewportConstrainedPage.tsx index 10fe34b6c3cbbd..44fa558067af7e 100644 --- a/static/app/views/explore/components/viewportConstrainedPage.tsx +++ b/static/app/views/explore/components/viewportConstrainedPage.tsx @@ -1,11 +1,9 @@ import styled from '@emotion/styled'; -import type {FlexProps} from '@sentry/scraps/layout'; - import * as Layout from 'sentry/components/layouts/thirds'; import {SHORT_VIEWPORT_HEIGHT} from 'sentry/utils/useIsShortViewport'; -interface ViewportConstrainedPageProps extends FlexProps<'main'> { +interface ViewportConstrainedPageProps extends Layout.MainProps { constrained?: boolean; hideFooter?: boolean; } @@ -27,11 +25,12 @@ export function ViewportConstrainedPage({ ...rest }: ViewportConstrainedPageProps) { if (!constrained) { - return ; + return ; } return ( - - + @@ -33,7 +35,7 @@ export default function ErrorsContent() { - + ); } @@ -77,3 +79,9 @@ export function ErrorsBody() { ); } + +const ErrorsPageMain = styled(Layout.Main)` + display: flex; + flex-direction: column; + min-height: 0; +`;