Upgrade to RME 2, restores functionality removed from that module

This commit is contained in:
Tom Moor
2018-07-14 22:26:26 -07:00
parent ab6259b162
commit 7f8a59ae2f
5 changed files with 155 additions and 10 deletions

View File

@ -0,0 +1,21 @@
// @flow
import React from 'react';
import styled from 'styled-components';
type Props = {
onClick?: ?Function,
grow?: boolean,
};
const ClickablePadding = (props: Props) => {
return <Container grow={props.grow} onClick={props.onClick} />;
};
const Container = styled.div`
min-height: 50vh;
padding-top: 50px;
cursor: ${({ onClick }) => (onClick ? 'text' : 'default')};
${({ grow }) => grow && `flex-grow: 1;`};
`;
export default ClickablePadding;