From 7b75cf55c467c3878fcb54f4e09129974bd2c074 Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Tue, 3 Jul 2018 18:12:38 +0200 Subject: [PATCH] No export default --- packages/fether-ui/src/AccountCard/AccountCard.js | 10 +++++----- packages/fether-ui/src/AccountCard/Address/Address.js | 4 +--- packages/fether-ui/src/AccountCard/Address/index.js | 4 +--- packages/fether-ui/src/AccountCard/Avatar/Avatar.js | 4 +--- packages/fether-ui/src/AccountCard/Avatar/index.js | 4 +--- .../src/AccountCard/Information/Information.js | 4 +--- .../fether-ui/src/AccountCard/Information/index.js | 4 +--- packages/fether-ui/src/AccountCard/Name/Name.js | 4 +--- packages/fether-ui/src/AccountCard/Name/index.js | 4 +--- 9 files changed, 13 insertions(+), 29 deletions(-) diff --git a/packages/fether-ui/src/AccountCard/AccountCard.js b/packages/fether-ui/src/AccountCard/AccountCard.js index d68ec279..75f6b0bb 100644 --- a/packages/fether-ui/src/AccountCard/AccountCard.js +++ b/packages/fether-ui/src/AccountCard/AccountCard.js @@ -6,15 +6,15 @@ import React from 'react'; import PropTypes from 'prop-types'; -import Address from './Address'; -import Avatar from './Avatar'; +import { Address } from './Address'; +import { Avatar } from './Avatar'; import { Card } from '../Card'; -import Information from './Information'; -import Name from './Name'; +import { Information } from './Information'; +import { Name } from './Name'; export const AccountCard = ({ address, name, shortAddress, ...otherProps }) => ( -
+
diff --git a/packages/fether-ui/src/AccountCard/Address/Address.js b/packages/fether-ui/src/AccountCard/Address/Address.js index 9478364a..9c1c5edb 100644 --- a/packages/fether-ui/src/AccountCard/Address/Address.js +++ b/packages/fether-ui/src/AccountCard/Address/Address.js @@ -9,7 +9,7 @@ import PropTypes from 'prop-types'; import { AddressShort } from '../../AddressShort'; import { Placeholder } from '../../Placeholder'; -const Address = ({ address, short, ...otherProps }) => ( +export const Address = ({ address, short, ...otherProps }) => (
{address ? ( short ? ( @@ -31,5 +31,3 @@ Address.propTypes = { name: PropTypes.string, short: PropTypes.bool }; - -export default Address; diff --git a/packages/fether-ui/src/AccountCard/Address/index.js b/packages/fether-ui/src/AccountCard/Address/index.js index 32a08964..88179d97 100644 --- a/packages/fether-ui/src/AccountCard/Address/index.js +++ b/packages/fether-ui/src/AccountCard/Address/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import Address from './Address'; - -export default Address; +export * from './Address'; diff --git a/packages/fether-ui/src/AccountCard/Avatar/Avatar.js b/packages/fether-ui/src/AccountCard/Avatar/Avatar.js index 0bb991a6..1912517f 100644 --- a/packages/fether-ui/src/AccountCard/Avatar/Avatar.js +++ b/packages/fether-ui/src/AccountCard/Avatar/Avatar.js @@ -9,7 +9,7 @@ import PropTypes from 'prop-types'; import { Placeholder } from '../../Placeholder'; -const Avatar = ({ address, ...otherProps }) => ( +export const Avatar = ({ address, ...otherProps }) => (
{address ? ( @@ -22,5 +22,3 @@ const Avatar = ({ address, ...otherProps }) => ( Avatar.propTypes = { address: PropTypes.string }; - -export default Avatar; diff --git a/packages/fether-ui/src/AccountCard/Avatar/index.js b/packages/fether-ui/src/AccountCard/Avatar/index.js index 7118470a..82cb46a9 100644 --- a/packages/fether-ui/src/AccountCard/Avatar/index.js +++ b/packages/fether-ui/src/AccountCard/Avatar/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import Avatar from './Avatar'; - -export default Avatar; +export * from './Avatar'; diff --git a/packages/fether-ui/src/AccountCard/Information/Information.js b/packages/fether-ui/src/AccountCard/Information/Information.js index ff9bdfef..e2d41c50 100644 --- a/packages/fether-ui/src/AccountCard/Information/Information.js +++ b/packages/fether-ui/src/AccountCard/Information/Information.js @@ -7,7 +7,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -const Information = ({ children, ...otherProps }) => ( +export const Information = ({ children, ...otherProps }) => (
{children}
@@ -16,5 +16,3 @@ const Information = ({ children, ...otherProps }) => ( Information.propTypes = { children: PropTypes.node }; - -export default Information; diff --git a/packages/fether-ui/src/AccountCard/Information/index.js b/packages/fether-ui/src/AccountCard/Information/index.js index 916846dc..77e73b92 100644 --- a/packages/fether-ui/src/AccountCard/Information/index.js +++ b/packages/fether-ui/src/AccountCard/Information/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import Information from './Information'; - -export default Information; +export * from './Information'; diff --git a/packages/fether-ui/src/AccountCard/Name/Name.js b/packages/fether-ui/src/AccountCard/Name/Name.js index a829ed07..40049c2a 100644 --- a/packages/fether-ui/src/AccountCard/Name/Name.js +++ b/packages/fether-ui/src/AccountCard/Name/Name.js @@ -8,7 +8,7 @@ import PropTypes from 'prop-types'; import { Placeholder } from '../../Placeholder'; -const Name = ({ name, ...otherProps }) => ( +export const Name = ({ name, ...otherProps }) => (
{name || }
@@ -17,5 +17,3 @@ const Name = ({ name, ...otherProps }) => ( Name.propTypes = { name: PropTypes.string }; - -export default Name; diff --git a/packages/fether-ui/src/AccountCard/Name/index.js b/packages/fether-ui/src/AccountCard/Name/index.js index 091ba90e..ec7fc784 100644 --- a/packages/fether-ui/src/AccountCard/Name/index.js +++ b/packages/fether-ui/src/AccountCard/Name/index.js @@ -3,6 +3,4 @@ // // SPDX-License-Identifier: BSD-3-Clause -import Name from './Name'; - -export default Name; +export * from './Name'; -- GitLab