ghost-portal/packages/app-123code/src/Summary.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

33 lines
723 B
TypeScript

// Copyright 2017-2019 @polkadot/app-123code 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 { BareProps } from '@polkadot/ui-app/types';
import React from 'react';
import styled from 'styled-components';
type Props = BareProps & {
children: React.ReactNode
};
const Wrapper = styled.div`
opacity: 0.5;
padding: 1rem 1.5rem;
`;
export default class Summary extends React.PureComponent<Props> {
render () {
const { children, className, style } = this.props;
return (
<Wrapper
className={className}
style={style}
>
{children}
</Wrapper>
);
}
}