Clean up ClickablePadding
Remove log
This commit is contained in:
@ -1,19 +1,8 @@
|
|||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
type Props = {
|
const ClickablePadding = styled.div`
|
||||||
onClick?: ?Function,
|
|
||||||
grow?: boolean,
|
|
||||||
};
|
|
||||||
|
|
||||||
const ClickablePadding = (props: Props) => {
|
|
||||||
return <Container grow={props.grow} onClick={props.onClick} />;
|
|
||||||
};
|
|
||||||
|
|
||||||
const Container = styled.div`
|
|
||||||
min-height: 50vh;
|
min-height: 50vh;
|
||||||
padding-top: 50px;
|
|
||||||
cursor: ${({ onClick }) => (onClick ? 'text' : 'default')};
|
cursor: ${({ onClick }) => (onClick ? 'text' : 'default')};
|
||||||
${({ grow }) => grow && `flex-grow: 1;`};
|
${({ grow }) => grow && `flex-grow: 1;`};
|
||||||
`;
|
`;
|
||||||
|
@ -46,7 +46,6 @@ class Editor extends React.Component<Props> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
focusAtEnd = () => {
|
focusAtEnd = () => {
|
||||||
console.log(this.editor);
|
|
||||||
if (this.editor) this.editor.focusAtEnd();
|
if (this.editor) this.editor.focusAtEnd();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user