Skip to content

Commit

Permalink
New release for core and studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
supnate committed Mar 1, 2018
1 parent 8b01efb commit 5ccf3e7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
2 changes: 1 addition & 1 deletion packages/rekit-core/package.json
@@ -1,6 +1,6 @@
{
"name": "rekit-core",
"version": "2.2.4",
"version": "2.2.5",
"description": "Rekit core functions.",
"author": "Nate Wang <supnate@gmail.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/rekit-studio/package.json
@@ -1,6 +1,6 @@
{
"name": "rekit-studio",
"version": "2.2.2",
"version": "2.2.3",
"description": "Web IDE for Rekit projects.",
"keywords": [
"rekit",
Expand Down
28 changes: 0 additions & 28 deletions packages/rekit-studio/src/features/home/test.js
@@ -1,28 +0,0 @@
import React, { Component } from 'react';

export default class ErrorBoundary extends Component {
constructor(props) {
super(props);
this.state = { hasError: false };
}

componentWillReceiveProps() {
this.setState({ hasError: false });
}

componentDidCatch(error, info) {
// Display fallback UI
this.setState({ hasError: true });
// You can also log the error to an error reporting service
// logErrorToMyService(error, info);
console.error(error, info);
}

render() {
if (this.state.hasError) {
// You can render any custom fallback UI
return <h1><div>abcde</div>Something went wrong.</h1>;
}
return this.props.children; // eslint-disable-line
}
}

0 comments on commit 5ccf3e7

Please sign in to comment.