This repository has been archived by the owner on Feb 19, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sell-orders-persist-through-app-restart-but-are-not-cancellable (#39)
**General Checklist:** - [x] Tests added for this feature/bug - [x] All tests are passed - [x] No lint error - Review - [x] Has been reviewed - [x] Conform by the [merge request performance guides] - [x] Conform by the [style guides] - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) **Tasks Checklist** - [x] Study requirement - [x] Reproduce the bug - [ ] Barterdex api - [x] get_enabled_coins - [x] my_orders - [x] my_recent_swaps - [ ] my_tx_history - [ ] order_status - [x] stop - [x] Remove myorder - list - [x] Update test - [ ] Test production **What are the relevant issue numbers?** Closes #34
- Loading branch information
1 parent
6fdea33
commit fc24dc7
Showing
33 changed files
with
362 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 2 additions & 53 deletions
55
packages/atomicdex-app/app/containers/OrdersPage/components/OrderItem.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
packages/atomicdex-app/app/containers/OrdersPage/components/OrderItem2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// @flow | ||
import React from 'react'; | ||
import List from '@material-ui/core/List'; | ||
import ListItem from '@material-ui/core/ListItem'; | ||
import ListItemText from '@material-ui/core/ListItemText'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import getCoinMemoize from '../../../components/CryptoIcons'; | ||
|
||
const debug = require('debug')('atomicapp:containers:OrdersPage:OrderItem'); | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
transactionRecord__listItem: { | ||
paddingLeft: 0 | ||
}, | ||
|
||
transactionRecord__ItemDay: { | ||
flex: 'none' | ||
}, | ||
|
||
transactionRecord__ItemText: { | ||
// flex: '5 1 auto' | ||
}, | ||
|
||
transactionRecord__ItemTextRight: { | ||
textAlign: 'right', | ||
top: '50%', | ||
right: 4, | ||
position: 'absolute', | ||
transform: 'translateY(-50%)' | ||
}, | ||
|
||
transactionRecord__linearProgress: { | ||
height: 2 | ||
}, | ||
|
||
transactionRecord__success: { | ||
color: theme.colors.success | ||
}, | ||
|
||
transactionRecord__danger: { | ||
color: theme.colors.danger | ||
} | ||
})); | ||
|
||
type IOrderItemProps = {}; | ||
|
||
function OrderItem(props: IOrderItemProps) { | ||
debug(`render`); | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<List> | ||
<ListItem button className={classes.transactionRecord__listItem}> | ||
<ListItemText | ||
primary="05" | ||
secondary="02" | ||
className={classes.transactionRecord__ItemDay} | ||
/> | ||
{getCoinMemoize('KMD')} | ||
<ListItemText | ||
primary="12fj3npPKwTNxUgDMN8XcCDcR2Z4DBehj6" | ||
secondary="Bob Side" | ||
className={classes.transactionRecord__ItemText} | ||
/> | ||
</ListItem> | ||
</List> | ||
); | ||
} | ||
|
||
OrderItem.defaultProps = {}; | ||
|
||
OrderItem.displayName = 'OrdersPage__OrderItem'; | ||
|
||
export default OrderItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.