remove constructor from Code component

This commit is contained in:
August Skare
2018-11-19 09:04:00 +01:00
parent 284252e7a4
commit 62706d83c4

View File

@@ -135,11 +135,6 @@ const CopyInput = StyledCopyInput as any;
class Code extends React.Component<CodeProps, CodeState> {
public state: CodeState = {};
private readonly _code = React.createRef<HTMLTextAreaElement>();
constructor(props: CodeProps) {
super(props);
}
public componentDidMount(): void {
/*
* _onMountAsync is only setting state, so no point in handling the promise