Commit 7b75cf55 authored by Amaury Martiny's avatar Amaury Martiny

No export default

parent 73c10544
......@@ -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 }) => (
<Card {...otherProps}>
<div className='account'>
<div className="account">
<Avatar address={address} />
<Information>
<Name name={name} />
......
......@@ -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 }) => (
<div className='account_address' {...otherProps}>
{address ? (
short ? (
......@@ -31,5 +31,3 @@ Address.propTypes = {
name: PropTypes.string,
short: PropTypes.bool
};
export default Address;
......@@ -3,6 +3,4 @@
//
// SPDX-License-Identifier: BSD-3-Clause
import Address from './Address';
export default Address;
export * from './Address';
......@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
import { Placeholder } from '../../Placeholder';
const Avatar = ({ address, ...otherProps }) => (
export const Avatar = ({ address, ...otherProps }) => (
<div className='account_avatar' {...otherProps}>
{address ? (
<Blockies seed={address.toLowerCase()} />
......@@ -22,5 +22,3 @@ const Avatar = ({ address, ...otherProps }) => (
Avatar.propTypes = {
address: PropTypes.string
};
export default Avatar;
......@@ -3,6 +3,4 @@
//
// SPDX-License-Identifier: BSD-3-Clause
import Avatar from './Avatar';
export default Avatar;
export * from './Avatar';
......@@ -7,7 +7,7 @@ import React from 'react';
import PropTypes from 'prop-types';
const Information = ({ children, ...otherProps }) => (
export const Information = ({ children, ...otherProps }) => (
<div className='account_information' {...otherProps}>
{children}
</div>
......@@ -16,5 +16,3 @@ const Information = ({ children, ...otherProps }) => (
Information.propTypes = {
children: PropTypes.node
};
export default Information;
......@@ -3,6 +3,4 @@
//
// SPDX-License-Identifier: BSD-3-Clause
import Information from './Information';
export default Information;
export * from './Information';
......@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
import { Placeholder } from '../../Placeholder';
const Name = ({ name, ...otherProps }) => (
export const Name = ({ name, ...otherProps }) => (
<div className='account_name' {...otherProps}>
{name || <Placeholder height={18} width={100} />}
</div>
......@@ -17,5 +17,3 @@ const Name = ({ name, ...otherProps }) => (
Name.propTypes = {
name: PropTypes.string
};
export default Name;
......@@ -3,6 +3,4 @@
//
// SPDX-License-Identifier: BSD-3-Clause
import Name from './Name';
export default Name;
export * from './Name';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment