Skip to content

Commit

Permalink
fix(table) resolve pui-css-table dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cwang-pivotal committed Mar 15, 2017
1 parent 70fdf5c commit 44df86f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/src/pivotal-ui-react/iconography/iconography.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SvgIcon extends Svg {
return require(`!!babel-loader!svg-react-loader!pui-css-iconography/svgs/${src}.svg`)
} catch (e) {
try {
return require(`!!babel-loader!svg-react!../../app/svg/${src}.svg`)
return require(`!!babel-loader!svg-react-loader!../../app/svg/${src}.svg`)
} catch (e) {}
}
}
Expand Down
2 changes: 1 addition & 1 deletion library/src/pivotal-ui-react/svg/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class Svg extends React.Component {

svgPathLoader(src) {
try {
return require(`!!babel-loader!svg-react!../../app/svg/${src}.svg`);
return require(`!!babel-loader!svg-react-loader!../../app/svg/${src}.svg`);
} catch (e) {}
}

Expand Down
2 changes: 0 additions & 2 deletions library/src/pivotal-ui/components/tables/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
try {
require('pui-css-bootstrap');
require('pui-css-iconography');
require('./tables.css');
} catch(e) {
}
2 changes: 1 addition & 1 deletion styleguide/docs/react/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {Svg} from 'pui-react-svg';
class MySvg extends Svg {
svgPathLoader(src) {
return require(`!!babel-loader!svg-react!./path/to/svgs/${src}.svg`);
return require(`!!babel-loader!svg-react-loader!./path/to/svgs/${src}.svg`);
}
}
```
Expand Down

0 comments on commit 44df86f

Please sign in to comment.