This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Button.PROPS = { | |
| isActive: Config.bool().value(false) | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Button.PROPS = { | |
| style: Config.oneOf(['primary','default']).value('default') | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Button.PROPS = { | |
| /** | |
| * Adds the classname 'mathematics-btn--active' | |
| * to Button | |
| * @type {boolean} | |
| * @default false | |
| */ | |
| isActive: Config.bool().value(false), | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {...this.otherProps()} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Button style={'primary'} onClick='handleOnClick' /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Button style={'primary'}> | |
| <span class='icon icon-arrow-down' /> show more | |
| </Button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import '../style/mathematics.scss'; | |
| import {Button, Layout, Operation} from './'; | |
| import {LANGUAGE, CALCULATE, getRandomNumber} from '../utils/Utils'; | |
| import {EventHandler} from 'metal-events'; | |
| import Component, {Config} from 'metal-jsx'; | |
| import dom from 'metal-dom'; | |
| import position from 'metal-position'; | |
| class Mathematics extends Component {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| created() { | |
| this.state.countdown = this.props.countdown; | |
| this.setLvl(this.props.lvlDefault); | |
| this.setInitGame(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setStartGame() { | |
| this.setNextOperation(); | |
| this.setState({ | |
| errors: 0, | |
| finish: false, | |
| hits: 0, | |
| init: false, | |
| message: '', | |
| start: true |