Clean up ClickablePadding
Remove log
This commit is contained in:
@ -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;`};
|
||||
`;
|
||||
|
@ -46,7 +46,6 @@ class Editor extends React.Component<Props> {
|
||||
};
|
||||
|
||||
focusAtEnd = () => {
|
||||
console.log(this.editor);
|
||||
if (this.editor) this.editor.focusAtEnd();
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user