Skip to content

Commit

Permalink
build(bundler): add block-components to the rollup build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 committed Jul 17, 2017
1 parent f3eb547 commit ae9507b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/src/js/block-components/CheckListExample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import CheckList from 'telus-thorium-enriched/blocks/components/CheckList';
import CheckList from 'telus-thorium-enriched/blocks/components/CheckList/CheckList';

const CheckListExample = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion docs/src/js/block-components/TextTitleBodyButtonExample.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import TextTitleBodyButton from 'telus-thorium-enriched/blocks/components/TextTitleBodyButton';
import TextTitleBodyButton from 'telus-thorium-enriched/blocks/components/TextTitleBodyButton/TextTitleBodyButton';

const TextTitleBodyButtonExample = () => {
const props = {
Expand Down
5 changes: 3 additions & 2 deletions enriched/src/blocks/Overview/Overview.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import CheckList from '../components/CheckList';
import TextTitleBodyButton from '../components/TextTitleBodyButton';

import CheckList from '../components/CheckList/CheckList';
import TextTitleBodyButton from '../components/TextTitleBodyButton/TextTitleBodyButton';

const Overview = (props) => {
const { className, ctaLink, overviewTitle, overviewDescription, sideContent } = props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'enzyme';
import CheckList from '../';
import CheckList from '../CheckList';

describe('<CheckList />', () => {
it('sets the classes from the className prop', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { shallow } from 'enzyme';
import TextTitleBodyButton from '../';
import TextTitleBodyButton from '../TextTitleBodyButton';

describe('<TextTitleBodyButton />', () => {
const props = {
Expand Down
3 changes: 3 additions & 0 deletions enriched/src/rollup-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export { default as SelectorCounter } from './components/SelectorCounter/Selecto
export { default as Spinner } from './components/Spinner/Spinner';
export { default as Steps } from './components/Steps/Steps';

export { default as CheckList } from './blocks/components/CheckList/CheckList';
export { default as TextTitleBodyButton } from './blocks/components/TextTitleBodyButton/TextTitleBodyButton';

export { default as Headline } from './blocks/Headline/Headline';
export { default as Overview } from './blocks/Overview/Overview';
export { default as TitledText } from './blocks/TitledText/TitledText';
Expand Down

0 comments on commit ae9507b

Please sign in to comment.