* Remove SUI modal * Update modal positioning * Clean up imports * Restore removed size * Add tests for Modal component * Add border radius to actions * Disable global scroll * Introduce ESC_KEYCODE const * Arrange props * Change components definitions * Change styled components to functional Co-authored-by: Jaco Greeff <jacogr@gmail.com>
20 lines
436 B
TypeScript
20 lines
436 B
TypeScript
// Copyright 2017-2021 @polkadot/react-components authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { ContentProps } from './types';
|
|
|
|
import React from 'react';
|
|
import styled from 'styled-components';
|
|
|
|
function Content ({ children, className = '' }: ContentProps) {
|
|
return (
|
|
<div className={className}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default React.memo(styled(Content)`
|
|
padding: 1.5rem;
|
|
`);
|