Fix isInternalUrl for subdomain support

Refactor / reduce plumbing
This commit is contained in:
Tom Moor
2018-11-18 18:43:11 -08:00
parent cd1956b971
commit 032d843f5b
51 changed files with 13 additions and 98 deletions

28
app/components/Labeled.js Normal file
View File

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