Skip to content

Gui 74 deposit withdraw#86

Merged
dmitrypisanko merged 13 commits intoGUI-01-prepare-your-afrom
GUI-74-deposit-withdraw
Apr 28, 2018
Merged

Gui 74 deposit withdraw#86
dmitrypisanko merged 13 commits intoGUI-01-prepare-your-afrom
GUI-74-deposit-withdraw

Conversation

@dmitrypisanko
Copy link
Copy Markdown
Contributor

No description provided.

}

export interface ISendTransactionResult extends ISendTransaction {
action?: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

needs enum?


&__withdraw-button {
margin-left: 10px;
font-size: 12px !important;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

у кнопки есть props fontSize

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

!import это антипаттерн

public render() {
const { autoFocus, className, allowAutoComplete, ...rest } = this.props;
const autoComplete = allowAutoComplete ? 'on' : 'off';
const underline = this.props.readOnly ? (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

есть подозрения что лучше это сделать через css
типа добавить модификатор sonm-input--readonly к root element

&--deposit,
&--withdraw {
-webkit-mask: url(./icon-arrow-right.svg) no-repeat center;
-webkit-mask-size: 70%;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

это что-то нестандартное( как же firefox?) и выглядит непонятным. это надо как -то проще сделать

}

&-dw-amount {
width: 100px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

этот класс у сразу нескольких колонок, которые не dw-amount

className="sonm-tx-list__cell-amount-amount"
key="2"
symbol={currency.symbol}
balance={'0'}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

тут наверно record.fee ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Тут будет комиссия, пока хз как она планируется считаться

title: 'Status',
className: 'sonm-tx-list__cell-status sonm-tx-list__cell',
render: (_, record) => {
const cls = `sonm-tx-list__cell-status--${record.status}`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

я бы добавил String(record.status).toLowerCase на всякий случай

const cls = `sonm-tx-list__cell-status--${record.status}`;

return (
<div className={cn('sonm-tx-list__cell-status', cls)}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

тут(и много где) одинаковый класс у внешнего td и его содержимого.
так быть не должно.
содержимое ячейки может быть либо отдельным блоком, либо как минимум отдельным элементом.

<td className="sonm-dw-list__cell-status sonm-dw-list__cell">
   <div className"sonm-dw-status-cell"> // это изолированный блок
      <div className"sonm-dw-status-cell__title">{title}</div> // это его элемент
   </div>
</td>

sonm-dw-list__cell - это общий класс для всех ячеек. может задавать background падинги и что-то еще

sonm-dw-list__cell-status - это елемент sonm-dw-list для конкретного столбца. тут можно задать ширину столбца например
его кстати можно назвать sonm-dw-list__cell--status - тогда "status" будет модификатором ячейки. (и он тоже будет ширину столбца менять)

sonm-dw-status-cell - уже описывает содержимое ячейки

query: '',
};

public componentWillMount() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  1. c 16.3 этот метод deprecated
  2. он ничего не делает здесь))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Мигрировал с обычной history ))

grid-template-rows: 30px 100px 1fr 80px;
grid-column-gap: 50px;

&__confirmation {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

помоему этот элемент не этого блока. но надо проверить.

если все таки этого, то это модификатор. .sonm-deposit-withdraw--confirmation

# Conflicts:
#	front/src/app/components/common/index.less
#	front/src/app/components/layouts/profile/sub/details/index.tsx
#	front/src/app/router/routes.tsx
@dmitrypisanko dmitrypisanko merged commit d80c3e5 into GUI-01-prepare-your-a Apr 28, 2018
@dmitrypisanko dmitrypisanko deleted the GUI-74-deposit-withdraw branch May 30, 2018 14:16
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.

2 participants