Most of the logic around showing a Buy/Sell/Cancel button was moved to a TradeButton component. I also added the proper callbacks (onBuy, onSell, onCancel), that for now are only placeholders that show a window.alert. It's also (or should be) fully tested.
Depends on #356.
Most of the logic around showing a Buy/Sell/Cancel button was moved to a
TradeButton
component. I also added the proper callbacks (onBuy
,onSell
,onCancel
), that for now are only placeholders that show awindow.alert
. It's also (or should be) fully tested.