Skip to content

Commit

Permalink
Revert "added word-break to EthAddress component"
Browse files Browse the repository at this point in the history
This reverts commit fc2b72d.
  • Loading branch information
gesquinca committed Jul 25, 2019
1 parent fc2b72d commit 46e7f23
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/EthAddress/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Text from '../Text';

const StyledText = styled(Text)`
& {
word-break: break-all;
}
`;

const addressSummary = (address, firstSegLength = 5, lastSegLength = 4) => {
if (!address) return '';
return address
Expand All @@ -23,7 +16,7 @@ class EthAddress extends React.PureComponent {
const { address, truncate } = this.props;
const displayAddress = truncate ? addressSummary(address) : address;

return <StyledText>{displayAddress}</StyledText>;
return <Text>{displayAddress}</Text>;
}
}

Expand Down

0 comments on commit 46e7f23

Please sign in to comment.