diff --git a/packages/fether-ui/src/AccountCard/AccountCard.js b/packages/fether-ui/src/AccountCard/AccountCard.js index f569788d51fd1ea6d56aed268e1ed44a54e554d7..d68ec279c44eb60ff400354d792b5db607d9e02d 100644 --- a/packages/fether-ui/src/AccountCard/AccountCard.js +++ b/packages/fether-ui/src/AccountCard/AccountCard.js @@ -8,11 +8,11 @@ import PropTypes from 'prop-types'; import Address from './Address'; import Avatar from './Avatar'; -import Card from '../Card'; +import { Card } from '../Card'; import Information from './Information'; import Name from './Name'; -const AccountCard = ({ address, name, shortAddress, ...otherProps }) => ( +export const AccountCard = ({ address, name, shortAddress, ...otherProps }) => (
@@ -34,5 +34,3 @@ AccountCard.propTypes = { name: PropTypes.string, shortAddress: PropTypes.bool }; - -export default AccountCard; diff --git a/packages/fether-ui/src/AccountCard/Address/Address.js b/packages/fether-ui/src/AccountCard/Address/Address.js index d1279565807a61f6376b7e89ed7481d170d0902d..9478364a9b5140de2a72b3b818e049ded9211408 100644 --- a/packages/fether-ui/src/AccountCard/Address/Address.js +++ b/packages/fether-ui/src/AccountCard/Address/Address.js @@ -6,8 +6,8 @@ import React from 'react'; import PropTypes from 'prop-types'; -import AddressShort from '../../AddressShort'; -import Placeholder from '../../Placeholder'; +import { AddressShort } from '../../AddressShort'; +import { Placeholder } from '../../Placeholder'; const Address = ({ address, short, ...otherProps }) => (
diff --git a/packages/fether-ui/src/AccountCard/Avatar/Avatar.js b/packages/fether-ui/src/AccountCard/Avatar/Avatar.js index 6b089966fa4ad061795c1ee0a5e00b2a27c48217..0bb991a6557dd1181c52d5f50ae0a80737d95fdb 100644 --- a/packages/fether-ui/src/AccountCard/Avatar/Avatar.js +++ b/packages/fether-ui/src/AccountCard/Avatar/Avatar.js @@ -7,7 +7,7 @@ import React from 'react'; import Blockies from 'react-blockies'; import PropTypes from 'prop-types'; -import Placeholder from '../../Placeholder'; +import { Placeholder } from '../../Placeholder'; const Avatar = ({ address, ...otherProps }) => (
diff --git a/packages/fether-ui/src/AccountCard/Name/Name.js b/packages/fether-ui/src/AccountCard/Name/Name.js index 6fec49b0dc842799aa3770835f167b366588debf..a829ed07abeb09c02ef8eccce5e69229a3044d8c 100644 --- a/packages/fether-ui/src/AccountCard/Name/Name.js +++ b/packages/fether-ui/src/AccountCard/Name/Name.js @@ -6,7 +6,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import Placeholder from '../../Placeholder'; +import { Placeholder } from '../../Placeholder'; const Name = ({ name, ...otherProps }) => (
diff --git a/packages/fether-ui/src/AccountCard/index.js b/packages/fether-ui/src/AccountCard/index.js index 82cb08c39e0662503c144fbbff6863b2deb5331e..509a607afe3a1863b3154980fe46f974d4453ce3 100644 --- a/packages/fether-ui/src/AccountCard/index.js +++ b/packages/fether-ui/src/AccountCard/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import AccountCard from './AccountCard'; - -export default AccountCard; +export * from './AccountCard'; diff --git a/packages/fether-ui/src/AccountHeader/AccountHeader.js b/packages/fether-ui/src/AccountHeader/AccountHeader.js index 9f60c356931199ee61c22edadf16fffa4825ebe8..d77ac6d88331274fc23086b72df304da3161b9a0 100644 --- a/packages/fether-ui/src/AccountHeader/AccountHeader.js +++ b/packages/fether-ui/src/AccountHeader/AccountHeader.js @@ -7,8 +7,8 @@ import React from 'react'; import Blockies from 'react-blockies'; import PropTypes from 'prop-types'; -import ClickToCopy from '../ClickToCopy'; -import Header from '../Header'; +import { ClickToCopy } from '../ClickToCopy'; +import { Header } from '../Header'; const NormalContainer = ({ children }) => (

{children}

@@ -19,7 +19,12 @@ const CopyContainer = ({ address, children, ...otherProps }) => ( ); -const AccountHeader = ({ address, copyAddress, name, ...otherProps }) => { +export const AccountHeader = ({ + address, + copyAddress, + name, + ...otherProps +}) => { const Container = copyAddress ? CopyContainer : NormalContainer; return ( @@ -45,5 +50,3 @@ AccountHeader.propTypes = { address: PropTypes.string, name: PropTypes.string }; - -export default AccountHeader; diff --git a/packages/fether-ui/src/AccountHeader/index.js b/packages/fether-ui/src/AccountHeader/index.js index 6091361371bce0958d0e487ee6afb6ef7e999c7a..b24ac61cadfcc3a3e260ecdc6a215cfdbc0cf09d 100644 --- a/packages/fether-ui/src/AccountHeader/index.js +++ b/packages/fether-ui/src/AccountHeader/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import AccountHeader from './AccountHeader'; - -export default AccountHeader; +export * from './AccountHeader'; diff --git a/packages/fether-ui/src/AddressShort/AddressShort.js b/packages/fether-ui/src/AddressShort/AddressShort.js index f3f4bb8bbb65b980cd1dffc759785d3d7fd543bf..8fc363bb3376ec036bd13b6b487ef65e5374106b 100644 --- a/packages/fether-ui/src/AddressShort/AddressShort.js +++ b/packages/fether-ui/src/AddressShort/AddressShort.js @@ -6,7 +6,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -const AddressShort = ({ address, as: T = 'span', ...otherProps }) => ( +export const AddressShort = ({ address, as: T = 'span', ...otherProps }) => ( {address.slice(0, 6)}..{address.slice(-4)} @@ -15,5 +15,3 @@ const AddressShort = ({ address, as: T = 'span', ...otherProps }) => ( AddressShort.propTypes = { address: PropTypes.string.isRequired }; - -export default AddressShort; diff --git a/packages/fether-ui/src/AddressShort/index.js b/packages/fether-ui/src/AddressShort/index.js index bf2aed3a96cafe66bccc762279534a8a5ae86168..c46d6bad821893d72bba605bbc9ee8ec0ac1c972 100644 --- a/packages/fether-ui/src/AddressShort/index.js +++ b/packages/fether-ui/src/AddressShort/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import AddressShort from './AddressShort'; - -export default AddressShort; +export * from './AddressShort'; diff --git a/packages/fether-ui/src/Card/Card.js b/packages/fether-ui/src/Card/Card.js index 963299ef37573c4443387d826f34927cfb3e9f1f..5119e6ea5abc6d746bf04b7fb5815dfca03fe8d7 100644 --- a/packages/fether-ui/src/Card/Card.js +++ b/packages/fether-ui/src/Card/Card.js @@ -6,7 +6,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -const Card = ({ children, className, drawers, onClick }) => ( +export const Card = ({ children, className, drawers, onClick }) => (
( +export const Header = ({ left, right, title }) => (
{left}
@@ -23,5 +23,3 @@ Header.propTypes = { right: PropTypes.node, title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]) }; - -export default Header; diff --git a/packages/fether-ui/src/Header/index.js b/packages/fether-ui/src/Header/index.js index 95cd638571b139801b8aee53b44d610178acd40a..704bf96704321bc54f80f4be1a4340d4586453cd 100644 --- a/packages/fether-ui/src/Header/index.js +++ b/packages/fether-ui/src/Header/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import Header from './Header'; - -export default Header; +export * from './Header'; diff --git a/packages/fether-ui/src/Placeholder/Placeholder.js b/packages/fether-ui/src/Placeholder/Placeholder.js index 0543faf638400ab61e4890eb0d6c3fcefdaaa58d..9fc8940d1df5ea0e65c40a2bc6b030d61f6ff31a 100644 --- a/packages/fether-ui/src/Placeholder/Placeholder.js +++ b/packages/fether-ui/src/Placeholder/Placeholder.js @@ -7,7 +7,7 @@ import React from 'react'; import ContentLoader from 'react-content-loader'; import PropTypes from 'prop-types'; -const Placeholder = ({ height, width, ...otherProps }) => ( +export const Placeholder = ({ height, width, ...otherProps }) => (