1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

using React.Fragment

This commit is contained in:
Szymon Lesisz 2018-09-26 18:02:39 +02:00
parent 2804275ca9
commit 5df872eec1
3 changed files with 4 additions and 6 deletions

View File

@ -32,11 +32,11 @@ export type Props = StateProps & DispatchProps;
type OwnProps = {}; type OwnProps = {};
const Notifications = (props: Props) => ( const Notifications = (props: Props) => (
<div> <React.Fragment>
<StaticNotifications {...props} /> <StaticNotifications {...props} />
<AccountNotifications {...props} /> <AccountNotifications {...props} />
<ActionNotifications {...props} /> <ActionNotifications {...props} />
</div> </React.Fragment>
); );
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State): StateProps => ({ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (state: State): StateProps => ({

View File

@ -10,8 +10,6 @@ import colors from 'config/colors';
import Tooltip from 'components/Tooltip'; import Tooltip from 'components/Tooltip';
import { QRCode } from 'react-qr-svg'; import { QRCode } from 'react-qr-svg';
import SelectedAccount from 'views/Wallet/components/SelectedAccount';
import { FONT_SIZE, FONT_WEIGHT, FONT_FAMILY } from 'config/variables'; import { FONT_SIZE, FONT_WEIGHT, FONT_FAMILY } from 'config/variables';
import type { Props } from './Container'; import type { Props } from './Container';

View File

@ -75,7 +75,7 @@ const AccountSummary = (props: Props) => {
const balance: string = new BigNumber(account.balance).minus(pendingAmount).toString(10); const balance: string = new BigNumber(account.balance).minus(pendingAmount).toString(10);
return ( return (
<section> <React.Fragment>
<AccountHeading> <AccountHeading>
<AccountName> <AccountName>
<StyledCoinLogo coinNetwork={account.network} /> <StyledCoinLogo coinNetwork={account.network} />
@ -155,7 +155,7 @@ const AccountSummary = (props: Props) => {
/> />
))} ))}
</AddedTokensWrapper> </AddedTokensWrapper>
</section> </React.Fragment>
); );
}; };