Skip to content

Commit

Permalink
Clean up loading page components
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Sep 18, 2018
1 parent 6dfe01f commit 50ae47e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
19 changes: 2 additions & 17 deletions x-pack/plugins/infra/public/components/loading_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiLoadingSpinner,
EuiPage,
EuiPageBody,
EuiPageContent,
} from '@elastic/eui';
import React from 'react';
import styled from 'styled-components';

import { FlexPage } from './page';

interface LoadingPageProps {
message?: string;
Expand All @@ -33,18 +33,3 @@ export const LoadingPage = ({ message }: LoadingPageProps) => (
</EuiPageBody>
</FlexPage>
);

const FlexPage = styled(EuiPage)`
flex: 1 0 0;
`;

// const InlineMessage = styled.div`
// display: flex;
// flex-direction: row;
// align-items: center;
// `;

// const MessageText = styled.div`
// padding: ${props => props.theme.eui.euiSizeM};
// display: inline-block;
// `;
5 changes: 5 additions & 0 deletions x-pack/plugins/infra/public/components/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { EuiPage } from '@elastic/eui';
import styled from 'styled-components';

export const ColumnarPage = styled.div`
Expand All @@ -19,3 +20,7 @@ export const PageContent = styled.div`
flex-direction: row;
background-color: ${props => props.theme.eui.euiColorEmptyShade};
`;

export const FlexPage = styled(EuiPage)`
flex: 1 0 0;
`;

0 comments on commit 50ae47e

Please sign in to comment.