Clean up ClickablePadding

Remove log
This commit is contained in:
Tom Moor
2018-07-14 22:35:40 -07:00
parent 7f8a59ae2f
commit f048c4ab0c
2 changed files with 1 additions and 13 deletions

View File

@ -1,19 +1,8 @@
// @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`
const ClickablePadding = styled.div`
min-height: 50vh;
padding-top: 50px;
cursor: ${({ onClick }) => (onClick ? 'text' : 'default')};
${({ grow }) => grow && `flex-grow: 1;`};
`;

View File

@ -46,7 +46,6 @@ class Editor extends React.Component<Props> {
};
focusAtEnd = () => {
console.log(this.editor);
if (this.editor) this.editor.focusAtEnd();
};