11import React from 'react' ;
22import RPS from './activities/rps/RPS' ;
33import ImageRecognition from './activities/imageRecognition/ImageRecognition' ;
4- import CreatureCreator from './activities/creatureCreator/CreatureCreator' ;
5- import PondCreator from './activities/hoc2019/PondCreator' ;
6- import SpritesheetFish from './activities/hoc2019/SpritesheetFish' ;
74import Button from 'react-bootstrap/lib/Button' ;
85import Row from 'react-bootstrap/lib/Row' ;
96import Col from 'react-bootstrap/lib/Col' ;
@@ -13,15 +10,12 @@ import Panel from 'react-bootstrap/lib/Panel';
1310const Activity = Object . freeze ( {
1411 None : 0 ,
1512 RPS : 1 ,
16- ImageRecognition : 2 ,
17- CreatureCreator : 3 ,
18- PondCreator : 4 ,
19- SpritesheetFish : 5
13+ ImageRecognition : 2
2014} ) ;
2115
2216module . exports = class MLActivities extends React . Component {
2317 state = {
24- currentActivity : Activity . PondCreator
18+ currentActivity : Activity . None
2519 } ;
2620
2721 render ( ) {
@@ -59,33 +53,6 @@ module.exports = class MLActivities extends React.Component {
5953 >
6054 Pick Image Recognition Activity
6155 </ Button >
62- < Button
63- onClick = { ( ) =>
64- this . setState ( {
65- currentActivity : Activity . CreatureCreator
66- } )
67- }
68- >
69- Pick Creature Creator
70- </ Button >
71- < Button
72- onClick = { ( ) =>
73- this . setState ( {
74- currentActivity : Activity . PondCreator
75- } )
76- }
77- >
78- Pick Pond Creator
79- </ Button >
80- < Button
81- onClick = { ( ) =>
82- this . setState ( {
83- currentActivity : Activity . SpritesheetFish
84- } )
85- }
86- >
87- Pick Spritesheet Fish
88- </ Button >
8956 </ div >
9057 ) }
9158 { this . state . currentActivity === Activity . RPS && (
@@ -98,21 +65,6 @@ module.exports = class MLActivities extends React.Component {
9865 < ImageRecognition />
9966 </ Panel >
10067 ) }
101- { this . state . currentActivity === Activity . CreatureCreator && (
102- < Panel >
103- < CreatureCreator />
104- </ Panel >
105- ) }
106- { this . state . currentActivity === Activity . PondCreator && (
107- < Panel >
108- < PondCreator />
109- </ Panel >
110- ) }
111- { this . state . currentActivity === Activity . SpritesheetFish && (
112- < Panel >
113- < SpritesheetFish />
114- </ Panel >
115- ) }
11668 </ Col >
11769 < Col xs = { 2 } />
11870 </ Row >
0 commit comments