ghost-portal/packages/react-components/src/Modal/Actions.tsx
MiZiet 9ac3d6a095
Replace sui modal with a custom one (#5914)
* 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>
2021-08-24 12:14:34 +03:00

29 lines
612 B
TypeScript

// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { ActionsProps } from './types';
import React from 'react';
import styled from 'styled-components';
import Button from '../Button';
function Actions ({ children, className = '' }: ActionsProps) {
return (
<div className={className}>
<Button.Group>
{children}
</Button.Group>
</div>
);
}
export default React.memo(styled(Actions)`
background-color: var(--bg-input);
border-radius: 0 0 4px 4px;
.ui--Button-Group {
margin: 1rem 1rem;
}
`);