Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow absolute path Fixes #24 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Allow absolute path Fixes #24 #25

wants to merge 1 commit into from

Conversation

nbwar
Copy link
Contributor

@nbwar nbwar commented Aug 11, 2017

Add the ability to use absolute path and changed components that used relative paths to absolute.
Also cleaned up some minor indenting and sorting of imports.

import themer from '../../styles/themer'
import zIndex from '../../styles/zIndex'
import { spacings } from '../../styles/spacing'
import colors from 'styles/colors'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kinda feels like we should import every style related things in one line, eg:

import { colors, responsive, themer, zIndex, spacing } from 'styles'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but this should probably be a separate issue all I did was change from a relative path to an absolute path

import responsive from 'styles/responsive'
import themer from 'styles/themer'
import zIndex from 'styles/zIndex'
import { spacings } from 'styles/spacing'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do want to continue importing directly from the specific directory, this should mirror other style import conventions and be:

import spacings from 'styles/spacing'

@Eldwick
Copy link
Contributor

Eldwick commented Aug 14, 2017

Fixes #24

@dcocchia
Copy link
Member

This looks good to me, but will need conflicts resolved. @nbwar can you resolve conflicts and then I can approve/merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants