Fixes: Allow BlockInsert on final block (previously didnt work in Prod)

This commit is contained in:
Tom Moor
2017-12-05 23:25:09 -08:00
parent e64ca3ca43
commit 5c38ff9e63
7 changed files with 30 additions and 17 deletions

View File

@@ -0,0 +1,22 @@
// @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: 150px;
padding-top: 50px;
cursor: ${({ onClick }) => (onClick ? 'text' : 'default')};
${({ grow }) => grow && `flex-grow: 1;`};
`;
export default ClickablePadding;