ghost-portal/packages/page-explorer/src/Main.tsx
Jaco Greeff 927c1d02f9
Flatten recurring events (same block) (#3201)
* Flattn recurring events (same block)

* Same-height event filter

* Display adjust

* Filter {balances, treasury}.Deposit
2020-07-15 16:11:21 +02:00

39 lines
972 B
TypeScript

// Copyright 2017-2020 @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 { KeyedEvent } from '@polkadot/react-query/types';
import React from 'react';
import { HeaderExtended } from '@polkadot/api-derive';
import { Columar, Column } from '@polkadot/react-components';
import BlockHeaders from './BlockHeaders';
import Events from './Events';
import Query from './Query';
import Summary from './Summary';
interface Props {
events: KeyedEvent[];
headers: HeaderExtended[];
}
function Main ({ events, headers }: Props): React.ReactElement<Props> {
return (
<>
<Query />
<Summary />
<Columar>
<Column>
<BlockHeaders headers={headers} />
</Column>
<Column>
<Events events={events} />
</Column>
</Columar>
</>
);
}
export default React.memo(Main);