Skip to content

Commit

Permalink
Revert error state to use EuiPage
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger committed Aug 14, 2020
1 parent 7b9658e commit d416fa8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
* you may not use this file except in compliance with the Elastic License.
*/

// TODO: Remove EuiPage & EuiPageBody before exposing full app

import React from 'react';
import { EuiPageContent } from '@elastic/eui';
import { EuiPage, EuiPageBody, EuiPageContent } from '@elastic/eui';

import { WORKPLACE_SEARCH_PLUGIN } from '../../../../../common/constants';
import { ErrorStatePrompt } from '../../../shared/error_state';
Expand All @@ -15,14 +17,16 @@ import { ViewContentHeader } from '../shared/view_content_header';

export const ErrorState: React.FC = () => {
return (
<>
<EuiPage restrictWidth>
<SetPageChrome isRoot />
<SendTelemetry action="error" metric="cannot_connect" />

<ViewContentHeader title={WORKPLACE_SEARCH_PLUGIN.NAME} />
<EuiPageContent>
<ErrorStatePrompt />
</EuiPageContent>
</>
<EuiPageBody>
<ViewContentHeader title={WORKPLACE_SEARCH_PLUGIN.NAME} />
<EuiPageContent>
<ErrorStatePrompt />
</EuiPageContent>
</EuiPageBody>
</EuiPage>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/

// TODO: Remove EuiPage & EuiPageBody before exposing full app

import React, { useContext, useEffect } from 'react';
import { EuiPage, EuiPageBody, EuiSpacer } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
Expand Down

0 comments on commit d416fa8

Please sign in to comment.