ghost-portal/packages/app-explorer/src/Main.tsx
Jaco Greeff f887f68cfb
Combine AddressSummary & Row (#1260)
* Combine AddressSummary & Row

* Cleanup address rendering

* Tiny tags cleanups

* Remove unused ui--AddressSummary overrides

* Column component

* Columar

* Cleanups

* Remove hot client

* Backport data padding
2019-06-02 10:13:38 +02:00

43 lines
1.0 KiB
TypeScript

// Copyright 2017-2019 @polkadot/app-explorer authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { I18nProps } from '@polkadot/ui-app/types';
import { KeyedEvent } from './types';
import React from 'react';
import { Columar, Column } from '@polkadot/ui-app';
import BlockHeaders from './BlockHeaders';
import Events from './Events';
import Query from './Query';
import Summary from './Summary';
import translate from './translate';
type Props = I18nProps & {
events: Array<KeyedEvent>
};
class Main extends React.PureComponent<Props> {
render () {
const { events, t } = this.props;
return (
<>
<Query />
<Summary />
<Columar>
<Column header={t('recent blocks')}>
<BlockHeaders />
</Column>
<Column header={t('recent events')}>
<Events events={events} />
</Column>
</Columar>
</>
);
}
}
export default translate(Main);