augur-ui-react-components
Advanced tools
Comparing version 3.1.25 to 3.1.26
{ | ||
"name": "augur-ui-react-components", | ||
"version": "3.1.25", | ||
"version": "3.1.26", | ||
"description": "Augur UI React Components", | ||
@@ -5,0 +5,0 @@ "author": "Augur Project", |
import React from 'react'; | ||
import Link from '../../link/components/link'; | ||
import classnames from 'classnames'; | ||
import { CREATE_MARKET, BUY, SELL, BID, ASK, SHORT_SELL, SHORT_ASK, COMMIT_REPORT, GENERATE_ORDER_BOOK, CANCEL_ORDER } from '../../transactions/constants/types'; | ||
import { CREATE_MARKET, BUY, SELL, BID, ASK, SHORT_SELL, SHORT_ASK, COMMIT_REPORT, GENERATE_ORDER_BOOK, CANCEL_ORDER, SELL_COMPLETE_SETS } from '../../transactions/constants/types'; | ||
import { LOGIN, FUND_ACCOUNT } from '../../auth/constants/auth-types'; | ||
@@ -77,2 +77,15 @@ import { SCALAR } from '../../markets/constants/market-types'; | ||
break; | ||
case SELL_COMPLETE_SETS: | ||
nodes.action = 'AUTOMATIC SELL'; | ||
nodes.description = ( | ||
<span className="description"> | ||
<span className="action">{nodes.action}</span> | ||
<ValueDenomination className="shares" {...p.data.numShares} postfix="of each outcome" /> | ||
<br /> | ||
{marketDescription()} | ||
</span> | ||
); | ||
break; | ||
case LOGIN: | ||
@@ -144,7 +157,6 @@ nodes.description = ( | ||
<span className="action">Cancel {p.data.order.type} order</span> | ||
<span className="at">for</span> | ||
<ValueDenomination className="shares" {...p.data.order.shares} /> | ||
<span className="of">of</span> | ||
<span className="outcome-name">{p.data.outcome.name && p.data.outcome.name.substring(0, 35) + (p.data.outcome.name.length > 35 && '...' || '')}</span> | ||
<span className="at">@</span> | ||
<ValueDenomination className="avgPrice" {...p.data.order.price} /> | ||
<br /> | ||
@@ -151,0 +163,0 @@ {marketDescription()} |
@@ -13,1 +13,2 @@ export const BUY = 'buy'; | ||
export const CANCEL_ORDER = 'cancel_order'; | ||
export const SELL_COMPLETE_SETS = 'sell_complete_sets'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1976374
37531