Skip to content

Commit

Permalink
import scss directly into component files
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Aug 20, 2021
1 parent 4df76f0 commit 9ddb628
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 28 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import React, { Fragment, ReactNode } from 'react';

import { EuiIcon, EuiLoadingSpinner } from '@elastic/eui';

import './_step_progress.scss';

type STATUS = 'incomplete' | 'inProgress' | 'complete' | 'failed' | 'paused' | 'cancelled';

const StepStatus: React.FunctionComponent<{ status: STATUS; idx: number }> = ({ status, idx }) => {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { i18n } from '@kbn/i18n';
import { ResponseError } from '../../../../lib/api';
import { DeprecationLoggingPreviewProps } from '../../../types';

import './_deprecation_logging_toggle.scss';

const i18nTexts = {
fetchErrorMessage: i18n.translate(
'xpack.upgradeAssistant.overview.deprecationLogs.fetchErrorMessage',
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import React, { FunctionComponent } from 'react';

import { EuiFlexGroup, EuiFlexItem, EuiText, EuiIcon } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiText, EuiIcon, EuiSpacer } from '@elastic/eui';
import { i18n } from '@kbn/i18n';

const i18nTexts = {
Expand All @@ -21,15 +21,18 @@ const i18nTexts = {

export const NoDeprecations: FunctionComponent = () => {
return (
<EuiText color="success">
<EuiFlexGroup gutterSize="s" alignItems="center" className="upgRenderSuccessMessage">
<EuiFlexItem grow={false}>
<EuiIcon type="check" />
</EuiFlexItem>
<EuiFlexItem grow={false} data-test-subj="noDeprecationsLabel">
{i18nTexts.noDeprecationsText}
</EuiFlexItem>
</EuiFlexGroup>
</EuiText>
<>
<EuiSpacer size="xl" />
<EuiText color="success">
<EuiFlexGroup gutterSize="s" alignItems="center">
<EuiFlexItem grow={false}>
<EuiIcon type="check" />
</EuiFlexItem>
<EuiFlexItem grow={false} data-test-subj="noDeprecationsLabel">
{i18nTexts.noDeprecationsText}
</EuiFlexItem>
</EuiFlexGroup>
</EuiText>
</>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import type { EuiStepProps } from '@elastic/eui/src/components/steps/step';
import { ESDeprecationStats } from './es_stats';
import { KibanaDeprecationStats } from './kibana_stats';

import './_review_logs_step.scss';

const i18nTexts = {
reviewStepTitle: i18n.translate('xpack.upgradeAssistant.overview.reviewStepTitle', {
defaultMessage: 'Review deprecated settings and resolve issues',
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/upgrade_assistant/public/index.scss

This file was deleted.

1 change: 0 additions & 1 deletion x-pack/plugins/upgrade_assistant/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* 2.0.
*/

import './index.scss';
import { PluginInitializerContext } from 'src/core/public';
import { UpgradeAssistantUIPlugin } from './plugin';

Expand Down

0 comments on commit 9ddb628

Please sign in to comment.