cf-component-pagination migration to Fela#135
Conversation
|
Looks like |
…styling before export
e8cf8c0 to
5d42e2e
Compare
tajo
left a comment
There was a problem hiding this comment.
Looking pretty good! I'll test it visually later. We should deal with the tests before merging (I'm working on StyleProvider now)
| import React from 'react'; | ||
| import { Pagination, PaginationItem } from 'cf-component-pagination'; | ||
| import Icon from 'cf-component-icon'; | ||
| import { applyTheme } from 'cf-style-container'; |
|
|
||
| export { PaginationUnstyled }; | ||
|
|
||
| export default applyTheme(PaginationUnstyled, PaginationTheme); |
There was a problem hiding this comment.
To preserve the consistency with my code, can you do these exports in index.js instead?
There was a problem hiding this comment.
I want consistency with my code, I use default export for PaginationLink and PaginationRoot
|
|
||
| export { PaginationItemUnstyled }; | ||
|
|
||
| export default applyTheme(PaginationItemUnstyled, PaginationItemTheme); |
There was a problem hiding this comment.
please, do these exports in index.js
There was a problem hiding this comment.
I want consistency with my code, I use default export for PaginationLink and PaginationRoot
|
|
||
| const PaginationLinkUnstyled = createComponent(styles, PaginationLink); | ||
|
|
||
| export default applyTheme(PaginationLinkUnstyled, PaginationLinkTheme); |
There was a problem hiding this comment.
I use export default applyTheme(PaginationLinkUnstyled, PaginationLinkTheme); to import into PaginationItem, I don't want duplication in index.js and PaginationLink
There was a problem hiding this comment.
you could import them from ./index.js but that's ok
|
|
||
| export { PaginationRootUnstyled }; | ||
|
|
||
| export default applyTheme(PaginationRootUnstyled, PaginationRootTheme); |
There was a problem hiding this comment.
I use export default applyTheme(PaginationRootUnstyled, PaginationRootTheme) to import into Pagination, I don't want duplication in index.js and PaginationRoot
|
I agree with @tajo that the export stuff should be done in |
|
All right, I moved all exports into |
| test('should should call onPageChange when clicking another page', () => { | ||
| const onPageChange = createStub(); | ||
| // StyleProvider does not pass props | ||
| // test('should call onPageChange when clicking another page', () => { |
There was a problem hiding this comment.
If you're disabling this test you should use test.skip( instead so that it appears in test results as being skipped. That way you're reminded to revisit it later.
No description provided.