Skip to content

Commit

Permalink
#40 +. Using FE template for graphelier tool. UI tweaks, and small co…
Browse files Browse the repository at this point in the history
…de changes. (#58)

* Added new interface [#40]
  • Loading branch information
chris-baur authored Oct 26, 2019
1 parent ece4d7e commit 84d9649
Show file tree
Hide file tree
Showing 17 changed files with 718 additions and 314 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#windows docker compose file
docker-compose_windows.yml

#Visual studio folder
.vs/*
Binary file added .vs/graphelier/v16/.suo
Binary file not shown.
172 changes: 147 additions & 25 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@material-ui/core": "^4.4.2",
"@material-ui/core": "^4.5.1",
"@material-ui/icons": "^4.5.1",
"@material-ui/styles": "^4.4.1",
"axios": "^0.19.0",
"classnames": "^2.2.6",
Expand Down
7 changes: 2 additions & 5 deletions app/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import {withStyles} from '@material-ui/core/styles';
import {Styles} from './styles/App';

import {saveReactAppName} from './actions/actions';
import OrderBookSnapshot from './components/OrderBookSnapshot';
import {Container} from '@material-ui/core';
import Dashboard from './components/template/Dashboard';

class App extends Component {

Expand All @@ -26,9 +25,7 @@ class App extends Component {
const {classes} = this.props;

return (
<Container className={classes.app}>
<OrderBookSnapshot/>
</Container>
<Dashboard/>
);
}
}
Expand Down
15 changes: 6 additions & 9 deletions app/src/components/Order.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ class Order extends Component {
const minQuantityTextSize = 1.5;

return (
<Box className={classNames(classes.rectangle, type === 'bid' ? classes.bid : classes.ask)} style={{minWidth:`${quantityBoxSize}%`, maxWidth: `${quantityBoxSize}%`}}>
{quantityBoxSize > minQuantityTextSize ?
(
<Typography className={classes.text}>{quantity}</Typography>
) : (
<Tooltip title={quantity} placement='cursor'><span className={classes.quantity}/></Tooltip>
)
}
</Box>
quantityBoxSize > minQuantityTextSize ?
<Box className={classNames(classes.rectangle, type === 'bid' ? classes.bid : classes.ask)} style={{ minWidth: `${quantityBoxSize}%`, maxWidth: `${quantityBoxSize}%` }}>
<Typography className={classes.text}>{quantity}</Typography>
</Box> :
<Tooltip title={quantity} placement='cursor'><span className={`${classes.quantity} ${classNames(classes.rectangle, type === 'bid' ? classes.bid : classes.ask)}`} style={{ minWidth: `${quantityBoxSize}%`, maxWidth: `${quantityBoxSize}%` }}/>
</Tooltip>
);
}
}
Expand Down
Loading

0 comments on commit 84d9649

Please sign in to comment.