Skip to content

Commit

Permalink
passing data GettingStarted->App
Browse files Browse the repository at this point in the history
  • Loading branch information
Devilla committed Jul 26, 2020
1 parent 466a220 commit 4b1b0df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
20 changes: 9 additions & 11 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import SweetAlert from 'react-bootstrap-sweetalert';
import { GraphQLClient } from 'graphql-request';
import axios from 'axios';
import createHmac from 'create-hmac';
import uuidv4 from 'uuid/v4';
// import SweetAlert from 'react-bootstrap-sweetalert';
// import { GraphQLClient } from 'graphql-request';
// import axios from 'axios';
// import createHmac from 'create-hmac';
// import uuidv4 from 'uuid/v4';
import "./content.css";
import './assets/css/argon.css';
import qs from 'querystring';
// import qs from 'querystring';
import Navbar from './components/Navbar.js';
import Settings from './components/Settings.js';
import GettingStarted from './components/GettingStarted.js'
Expand Down Expand Up @@ -89,14 +89,12 @@ class App extends React.Component {
}

render() {
const { gettingStarted, settings, verification, operators, clientSeed, serverSeedHash, nonce, betData, cryptoGames, primeDice, stake, bitvest, diceResult, diceVerify, verify, apiKey, apiKeyStake, usernameStake, enterAPI, enterAPIStake,
Balance, BetId, Roll, nonceChecked, toggleState, betAmount, betPayout, betPlaced, isNonceManipulated, numberBetsVerFailed, betDataById, betDataEnriched, viewRecentBetsStake, showAlert, popupResult, active_game, mines, keno, numOfRows,
numOfColumns, numOfColumnsKeno } = this.state;
const { gettingStarted, operators } = this.state;
return (
<div className={'my-extension text-center'}>
<Navbar />
<GettingStarted gettingStarted="true" callback={this.gettingStartedCallback} />
<Operators operators={operators}/>
<GettingStarted gettingStarted={true} callback={this.gettingStartedCallback} />
{operators && <Operators />}
<Settings />
</div>
);
Expand Down
5 changes: 3 additions & 2 deletions src/components/GettingStarted.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export default class GettingStarted extends React.Component {
constructor(props) {
super(props);
this.state = {
gettingStarted: false
gettingStarted: false,
operators : true
}
}

Expand All @@ -14,7 +15,7 @@ export default class GettingStarted extends React.Component {

handleGettingStarted = () => {
// this.getSessionTokenBitvest()
this.setState({ gettingStarted: false, operators: true })
this.setState({ gettingStarted: false})
this.props.callback(this.state.operators);
};

Expand Down
6 changes: 1 addition & 5 deletions src/components/Operators.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b1b0df

Please sign in to comment.