Skip to content

Commit a82f3fd

Browse files
committed
SLDSIcons export fix
1 parent 3097a6a commit a82f3fd

File tree

7 files changed

+24
-7
lines changed

7 files changed

+24
-7
lines changed

components/SLDSIcons.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,9 @@ export const InputIcon = React.createClass({
9797
}
9898

9999
});
100+
101+
module.exports = {
102+
InputIcon:InputIcon,
103+
Icon:Icon,
104+
ButtonIcon:ButtonIcon
105+
};

demo/pages/HomePage/PicklistBaseCustomSection.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1010
'use strict';
1111

1212
import React from 'react';
13-
import SLDSPicklistBase from '../../../components/SLDSPicklistBase';
14-
import {Icon} from '../../../components/SLDSIcons';
13+
import {SLDSPicklistBase, SLDSIcons} from '../../../components';
1514

1615
import {default as PrismCode} from 'react-prism/lib/PrismCode';
1716

18-
17+
const Icon = SLDSIcons.Icon;
1918

2019
const CustomListItemLabel = React.createClass( {
2120
getDefaultProps () {

dist/design-system-react.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/design-system-react.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/SLDSIcons.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,10 @@ var InputIcon = _react2['default'].createClass({
121121
}
122122

123123
});
124-
exports.InputIcon = InputIcon;
124+
125+
exports.InputIcon = InputIcon;
126+
module.exports = {
127+
InputIcon: InputIcon,
128+
Icon: Icon,
129+
ButtonIcon: ButtonIcon
130+
};

0 commit comments

Comments
 (0)