ghost-portal/packages/app-extrinsics/src/index.tsx
Jaco Greeff bb5cf67d61
Convert some apps to styled components (#1099)
* Move 123code to styled components

* Convert some apps to using styled-components
2019-05-10 14:03:37 +02:00

39 lines
938 B
TypeScript

// Copyright 2017-2019 @polkadot/app-extrinsics 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 { AppProps, I18nProps } from '@polkadot/ui-app/types';
import React from 'react';
import { Tabs } from '@polkadot/ui-app';
import Selection from './Selection';
import translate from './translate';
type Props = AppProps & I18nProps;
class ExtrinsicsApp extends React.PureComponent<Props> {
render () {
const { basePath, t } = this.props;
return (
<main className='extrinsics--App'>
<header>
<Tabs
basePath={basePath}
items={[{
name: 'create',
text: t('Extrinsic submission')
}]}
/>
</header>
<Selection />
</main>
);
}
}
export { ExtrinsicsApp };
export default translate(ExtrinsicsApp);