ghost-portal/packages/app-explorer/src/Main.tsx
Jaco Greeff 612b5d0f45
API update (metadata v1), fragment support (#652)
* Use fragments instead of [] returns

* Frament part 2

* Update API

* Update Creator.tsx

* Review cleanups
2019-01-26 17:27:13 +01:00

41 lines
1011 B
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 React from 'react';
import BlockHeaders from './BlockHeaders';
import EventsRecent from './EventsRecent';
import Query from './Query';
import Summary from './Summary';
import translate from './translate';
type Props = I18nProps & {};
class Main extends React.PureComponent<Props> {
render () {
const { t } = this.props;
return (
<>
<Summary />
<Query />
<div className='explorer--Overview'>
<div className='column'>
<h1>{t('recent blocks')}</h1>
<BlockHeaders />
</div>
<div className='column'>
<h1>{t('recent events')}</h1>
<EventsRecent />
</div>
</div>
</>
);
}
}
export default translate(Main);