Skip to content

Commit

Permalink
Centralize Sass imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chnn committed Aug 7, 2018
1 parent c242699 commit 50ab7b6
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ import {
SourceItemValue,
} from 'src/types/dashboards'

// Styles
import 'src/dashboards/components/import_dashboard_mappings/ImportDashboardMappings.scss'

interface Props {
cells: Cell[]
source: Source
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {Component} from 'react'

import './ExpandableMessage.scss'
import {ClickOutside} from 'src/shared/components/ClickOutside'

interface State {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import {
IconFont,
} from 'src/reusable_ui/types'

// Styles
import 'src/reusable_ui/components/Button/Button.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/card_select/CardSelectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import classnames from 'classnames'
// Types
import {CardSelectCardProps} from 'src/types/cardSelect'

// Styles
import 'src/reusable_ui/components/card_select/CardSelectCard.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface State {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/dropdowns/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import {
IconFont,
} from 'src/reusable_ui/types'

// Styles
import 'src/reusable_ui/components/dropdowns/Dropdown.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
4 changes: 0 additions & 4 deletions ui/src/reusable_ui/components/dropdowns/DropdownButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ import {
DropdownChild,
} from 'src/reusable_ui/types'

// Styles
import 'src/reusable_ui/components/Button/Button.scss'
import 'src/reusable_ui/components/dropdowns/DropdownButton.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/form_layout/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import FormLabel from 'src/reusable_ui/components/form_layout/FormLabel'
import FormDivider from 'src/reusable_ui/components/form_layout/FormDivider'
import FormFooter from 'src/reusable_ui/components/form_layout/FormFooter'

// Styles
import 'src/reusable_ui/components/form_layout/Form.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/inputs/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import classnames from 'classnames'
// Types
import {ComponentStatus, ComponentSize, IconFont} from 'src/reusable_ui/types'

// Styles
import 'src/reusable_ui/components/inputs/Input.scss'

export enum InputType {
Text = 'text',
Number = 'number',
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/overlays/OverlayTechnology.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
import React, {Component} from 'react'
import classnames from 'classnames'

// Styles
import 'src/reusable_ui/components/overlays/Overlay.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/panel/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import PanelHeader from 'src/reusable_ui/components/panel/PanelHeader'
import PanelBody from 'src/reusable_ui/components/panel/PanelBody'
import PanelFooter from 'src/reusable_ui/components/panel/PanelFooter'

// Styles
import 'src/reusable_ui/components/panel/Panel.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

export enum PanelType {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/slide_toggle/SlideToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import classnames from 'classnames'
// Types
import {ComponentColor, ComponentSize} from 'src/reusable_ui/types'

// Styles
import 'src/reusable_ui/components/slide_toggle/SlideToggle.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/wizard/ProgressConnector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import React, {PureComponent} from 'react'
// Types
import {ConnectorState} from 'src/reusable_ui/constants/wizard'

// Styles
import 'src/reusable_ui/components/wizard/ProgressConnector.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/wizard/WizardButtonBar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Libraries
import React, {PureComponent} from 'react'

// Styles
import 'src/reusable_ui/components/wizard/WizardButtonBar.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/wizard/WizardController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import WizardProgressBar from 'src/reusable_ui/components/wizard/WizardProgressB
import {WizardStepProps, Step} from 'src/types/wizard'
import {StepStatus} from 'src/reusable_ui/constants/wizard'

// Styles
import 'src/reusable_ui/components/wizard/WizardController.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface State {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/wizard/WizardFullScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import WizardController from 'src/reusable_ui/components/wizard/WizardController
// Types
import {WizardStepProps} from 'src/types/wizard'

// Styles
import 'src/reusable_ui/components/wizard/WizardFullScreen.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/wizard/WizardProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import ProgressConnector from 'src/reusable_ui/components/wizard/ProgressConnect
import {Step} from 'src/types/wizard'
import {ConnectorState, StepStatus} from 'src/reusable_ui/constants/wizard'

// Types
import 'src/reusable_ui/components/wizard/WizardProgressBar.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
3 changes: 0 additions & 3 deletions ui/src/reusable_ui/components/wizard/WizardStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import React, {PureComponent, ReactNode} from 'react'
import FancyScrollbar from 'src/shared/components/FancyScrollbar'
import WizardButtonBar from 'src/reusable_ui/components/wizard/WizardButtonBar'

// Styles
import 'src/reusable_ui/components/wizard/WizardStep.scss'

import {ErrorHandling} from 'src/shared/decorators/errors'

interface Props {
Expand Down
18 changes: 18 additions & 0 deletions ui/src/style/chronograf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,24 @@
@import 'components/kapacitor-logs-table';
@import 'components/dropdown-placeholder';
@import 'components/histogram-chart';
@import '../logs/components/expandable_message/ExpandableMessage';
@import '../reusable_ui/components/panel/Panel.scss';
@import '../reusable_ui/components/overlays/Overlay.scss';
@import '../dashboards/components/import_dashboard_mappings/ImportDashboardMappings.scss';
@import '../reusable_ui/components/card_select/CardSelectCard.scss';
@import '../reusable_ui/components/wizard/WizardController.scss';
@import '../reusable_ui/components/wizard/WizardButtonBar.scss';
@import '../reusable_ui/components/wizard/WizardFullScreen.scss';
@import '../reusable_ui/components/wizard/ProgressConnector.scss';
@import '../reusable_ui/components/wizard/WizardProgressBar.scss';
@import '../reusable_ui/components/wizard/WizardStep.scss';
@import '../reusable_ui/components/Button/Button.scss';
@import '../reusable_ui/components/dropdowns/Dropdown.scss';
@import '../reusable_ui/components/slide_toggle/SlideToggle.scss';
@import '../reusable_ui/components/Button/Button.scss';
@import '../reusable_ui/components/dropdowns/DropdownButton.scss';
@import '../reusable_ui/components/inputs/Input.scss';
@import '../reusable_ui/components/form_layout/Form.scss';

// Pages
@import 'pages/config-endpoints';
Expand Down

0 comments on commit 50ab7b6

Please sign in to comment.