Import styles directly into component

pull/10616/head
Alex P 2018-11-14 16:00:41 -08:00
parent 25b3e4f29e
commit 629a03330d
5 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,8 @@
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
*/ */
@import 'src/style/modules';
.index-list { .index-list {
border: 0; border: 0;
border-collapse: collapse; border-collapse: collapse;

View File

@ -11,6 +11,9 @@ import Cell from 'src/clockface/components/index_views/IndexListRowCell'
// Decorators // Decorators
import {ErrorHandling} from 'src/shared/decorators/errors' import {ErrorHandling} from 'src/shared/decorators/errors'
// Styles
import './IndexList.scss'
interface Props { interface Props {
children: JSX.Element[] children: JSX.Element[]
} }

View File

@ -3,7 +3,7 @@ import React, {Component} from 'react'
import classnames from 'classnames' import classnames from 'classnames'
// Types // Types
import {Alignment} from 'src/clockface' import {Alignment} from 'src/clockface/types'
// Decorators // Decorators
import {ErrorHandling} from 'src/shared/decorators/errors' import {ErrorHandling} from 'src/shared/decorators/errors'

View File

@ -3,7 +3,7 @@ import React, {Component} from 'react'
import classnames from 'classnames' import classnames from 'classnames'
// Types // Types
import {Alignment} from 'src/clockface' import {Alignment} from 'src/clockface/types'
// Decorators // Decorators
import {ErrorHandling} from 'src/shared/decorators/errors' import {ErrorHandling} from 'src/shared/decorators/errors'

View File

@ -16,7 +16,6 @@
// Components // Components
// TODO: Import these styles into their respective components instead of this stylesheet // TODO: Import these styles into their respective components instead of this stylesheet
@import "src/shared/components/color_dropdown/color-dropdown"; @import "src/shared/components/color_dropdown/color-dropdown";
@import "src/shared/components/index_views/IndexList";
@import "src/shared/components/dropdown_auto_refresh/AutoRefreshDropdown"; @import "src/shared/components/dropdown_auto_refresh/AutoRefreshDropdown";
@import "src/shared/components/profile_page/ProfilePage"; @import "src/shared/components/profile_page/ProfilePage";
@import "src/shared/components/avatar/Avatar"; @import "src/shared/components/avatar/Avatar";