-
Notifications
You must be signed in to change notification settings - Fork 36
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
base: master
Are you sure you want to change the base?
Conversation
import themer from '../../styles/themer' | ||
import zIndex from '../../styles/zIndex' | ||
import { spacings } from '../../styles/spacing' | ||
import colors from 'styles/colors' |
There was a problem hiding this comment.
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'
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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'
Fixes #24 |
This looks good to me, but will need conflicts resolved. @nbwar can you resolve conflicts and then I can approve/merge? |
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.