ghost-portal/packages/ui-app/src/Page.tsx
Jaco Greeff 9b35e1ec79
Introduce Page & Navigation components (consistency) (#211)
* Introduce Page & Navigation components (consistency)

* Staking account border update
2018-08-08 17:18:57 +02:00

29 lines
633 B
TypeScript

// Copyright 2017-2018 @polkadot/ui-app authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import { BareProps } from './types';
import React from 'react';
import classes from './util/classes';
type Props = BareProps & {
children: React.ReactNode
};
export default class Page extends React.PureComponent<Props> {
render () {
const { children, className, style } = this.props;
return (
<div
className={classes('ui--Page', className)}
style={style}
>
{children}
</div>
);
}
}