feat: transactions page (#342)

* feat: transactions page

* fix: remove unused txHash function

* refactor: rewrite transactions sql queries

* fix: use left instead of inner join on txs

* fix: change expandable table logic

* fix: add other coins

* refactor: move log download function to component

* refactor: use name values in RadioGroup

* fix: assorted fixes

* feat: virtualize expandable table

* fix: clean up imports

* fix: remove border radius

* fix: move formatting out of CopyToClipboard

And use CSS instead of JS to format.

* fix: remove customer's last name formatting

This was using lodash's string case functions, which produce unwanted
results if, for instance, a user has a double-barrel last name.
This commit is contained in:
Rafael Taranto 2019-12-12 13:55:52 +00:00 committed by Josh Harvey
parent 41d8b7afe1
commit 8334bd274f
38 changed files with 1225 additions and 226 deletions

View file

@ -28,13 +28,15 @@ const Label = withStyles({
}
})(props => <FormControlLabel {...props} />)
const RadioGroup = ({ name, value, labels, ariaLabel, onChange, className, ...props }) => {
/* options = [{ label, value }]
*/
const RadioGroup = ({ name, value, options, ariaLabel, onChange, className, ...props }) => {
return (
<>
{labels && (
{options && (
<MaterialRadioGroup aria-label={ariaLabel} name={name} value={value} onChange={onChange} className={classnames(className)}>
{labels.map((label, idx) => (
<Label key={idx} value={idx} control={<GreenRadio />} label={label} />
{options.map((options, idx) => (
<Label key={idx} value={options.value} control={<GreenRadio />} label={options.label} />
))}
</MaterialRadioGroup>
)}