Browse Source

ref(ui): Remove old alert style from projectContext 404 (#44064)

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Evan Purkhiser 2 years ago
parent
commit
7b9d4c3bb6
1 changed files with 6 additions and 4 deletions
  1. 6 4
      static/app/views/projects/projectContext.tsx

+ 6 - 4
static/app/views/projects/projectContext.tsx

@@ -5,6 +5,8 @@ import styled from '@emotion/styled';
 import {fetchOrgMembers} from 'sentry/actionCreators/members';
 import {setActiveProject} from 'sentry/actionCreators/projects';
 import {Client} from 'sentry/api';
+import Alert from 'sentry/components/alert';
+import * as Layout from 'sentry/components/layouts/thirds';
 import LoadingError from 'sentry/components/loadingError';
 import LoadingIndicator from 'sentry/components/loadingIndicator';
 import MissingProjectMembership from 'sentry/components/projects/missingProjectMembership';
@@ -264,11 +266,11 @@ class ProjectContext extends Component<Props, State> {
       case ErrorTypes.PROJECT_NOT_FOUND:
         // TODO(chrissy): use scale for margin values
         return (
-          <div className="container">
-            <div className="alert alert-block" style={{margin: '30px 0 10px'}}>
+          <Layout.Page withPadding>
+            <Alert type="warning">
               {t('The project you were looking for was not found.')}
-            </div>
-          </div>
+            </Alert>
+          </Layout.Page>
         );
       case ErrorTypes.MISSING_MEMBERSHIP:
         // TODO(dcramer): add various controls to improve this flow and break it