Skip to content

Conversation

@pavkahanov
Copy link
Contributor

No description provided.

@pavkahanov pavkahanov requested a review from masteralx December 5, 2019 02:20
@@ -1,7 +1,11 @@
.container {
position: relative;
top: 55px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean margin-top


const Footer = () => (
<footer className={styles.footer}>
<a href="/">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean Link

.header {
position: absolute;
position: relative;
top: 30px;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean margin-top and margin-left


import styles from '../Questions.scss';


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line

<div className={styles.questions__head}>
<div className={styles['questions__head-create']}>
<Button theme="white" onClick={goBack}>
Назад

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l18n


return new Promise((resolve) => {
Web3Service.createTxData(address, rawTx, maxGasPrice)
// eslint-disable-next-line max-len

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

import Button from '../Button/Button';
import { CreateToken } from '../Icons';
import Question from './Question';
import styles from './Questions.scss';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move styles down

MemoryRouter, Route, Switch,
} from 'react-router-dom';
import Login from '../Login';
// import Login from '../Login';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncomment

import React, { Component } from 'react';
import propTypes from 'prop-types';
import { DropdownArrowIcon } from '../Icons';
import styles from '../Dropdown/Dropdown.scss';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move styles down

Comment on lines +162 to +170
async checkIsQuestionsUploaded(address) {
const { Web3Service, contractService } = this.rootStore;
const abi = JSON.parse(fs.readFileSync(path.join(PATH_TO_CONTRACTS, './Voter.abi'), 'utf8'));
const contract = Web3Service.createContractInstance(abi);
contract.options.address = address;
contractService.setContract(contract);
const { countOfUploaded, totalCount } = await contractService.checkQuestions();
return countOfUploaded > totalCount;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move it to ContractServices

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants