Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Removed but with state in model.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dominic-chang committed May 19, 2018
1 parent 8d286bc commit dd7204d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Login from './scenes/Login/components/Login';
import BlogPost from './scenes/Home/components/Posts/BlogPost';
import NotFound from './scenes/Home/components/NotFound';


// ------------------------------------TODO incorporate this later
const routes = [
{
path:"/",
Expand All @@ -32,7 +32,7 @@ const routes = [

}
];

// -------------------------------------------------------------
class NavigationBar extends Component{
render(){
return(
Expand Down
4 changes: 3 additions & 1 deletion src/scenes/Home/components/Home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, Fragment } from 'react';
import { Link, Redirect } from 'react-router-dom';
import { Link } from 'react-router-dom';
import Butter from 'buttercms';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
Expand Down Expand Up @@ -82,6 +82,8 @@ class Home extends Component {
console.log(this.props)
this.props.history.replace('/404');
break;
default :
break;
}
});

Expand Down
2 changes: 2 additions & 0 deletions src/scenes/Home/components/Posts/BlogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class BlogPost extends Component {
console.log(this.props)
this.props.history.push('/404');
break;
default :
break;
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/scenes/hydrogenAtom/components/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export default class Model extends React.Component{
render() {
return(
<div id='model-container' ref={(mount)=>{this.mount=mount}} className={this.props.className} style={{lineHeight:0}}>
<canvas id='my-canvas' canvas resize={true}/>
<canvas id='my-canvas' canvas="true" resize="true"/>
</div>

);
Expand Down

0 comments on commit dd7204d

Please sign in to comment.