mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 11:25:04 +01:00
34 lines
523 B
JavaScript
34 lines
523 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import {NOOP} from "../gems/func";
|
|
|
|
//TODO: remove it
|
|
export default class WindowSystem extends React.Component {
|
|
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
componentDidMount() {
|
|
}
|
|
|
|
componentWillUnMount() {
|
|
}
|
|
|
|
render() {
|
|
return this.props.children;
|
|
}
|
|
|
|
childContext = {
|
|
setWindowMoveHandler: NOOP
|
|
};
|
|
|
|
getChildContext() {
|
|
return this.childContext;
|
|
}
|
|
|
|
static childContextTypes = {
|
|
setWindowMoveHandler: PropTypes.func
|
|
}
|
|
|
|
}
|