ghost-keychain/packages/extension-ui/src/components/ButtonArea.tsx
Thibaut Sardan e7fb3651ab
Style component global cleanup (#518)
* ButtonArea

* List

* Box and Welcome screen

* Svg

* remove single used Title

* ValidateInput

* VerticalSpace

* View

* Export

* Forget

* DropdownAddress

* Accounts

* Request

* Authorize

* SelectParent

* Header

* Menu item spacing

* fix tests

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* Refactor Request into smaller components (#519)

* refactor into smaller components

* stray component

* Update packages/extension-ui/src/Popup/Signing/Request/SignArea.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* lint

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-23 20:26:14 +02:00

35 lines
780 B
TypeScript

// Copyright 2019-2020 @polkadot/extension-ui authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { ThemeProps } from '../types';
import React from 'react';
import styled from 'styled-components';
interface Props extends ThemeProps {
className?: string;
children: React.ReactNode;
}
const ButtonArea = function ({ children, className }: Props) {
return (
<div className={className}>
{children}
</div>
);
};
export default styled(ButtonArea)(({ theme }: ThemeProps) => `
display: flex;
flex-direction: row;
background: ${theme.highlightedAreaBackground};
border-top: 1px solid ${theme.inputBorderColor};
padding: 12px 24px;
margin-left: 0;
margin-right: 0;
& > button:not(:last-of-type) {
margin-right: 8px;
}
`);