Workable document moving

This commit is contained in:
Jori Lallo
2017-09-04 14:48:56 -07:00
parent 70d352e193
commit 483bf29cc4
14 changed files with 414 additions and 66 deletions

View File

@ -0,0 +1,29 @@
// @flow
import React from 'react';
import { observer } from 'mobx-react';
import Flex from 'components/Flex';
import styled from 'styled-components';
import { size } from 'styles/constants';
type Props = {
label: React.Element<*> | string,
children: React.Element<*>,
};
const Labeled = ({ label, children, ...props }: Props) => (
<Flex column {...props}>
<Header>{label}</Header>
{children}
</Flex>
);
const Header = styled(Flex)`
margin-bottom: ${size.medium};
font-size: 13px;
font-weight: 500;
text-transform: uppercase;
color: #9FA6AB;
letter-spacing: 0.04em;
`;
export default observer(Labeled);