pull export and refresh buttons to the right
This commit is contained in:
parent
1785009fa1
commit
d17a333fc6
1 changed files with 79 additions and 69 deletions
|
@ -291,10 +291,12 @@ function TxoList(props: Props) {
|
|||
return (
|
||||
<Card
|
||||
title={
|
||||
<><div className="table__header-text">{__(`Transactions`)}</div>
|
||||
<div style={{display: 'inline-block'}}>
|
||||
<fieldset-section>
|
||||
<div className={'txo__radios'}>
|
||||
<><div className="table__header-text" style={{display: 'inline'}}>{__(`Transactions`)}</div>
|
||||
<div style={{ display: 'inline'}}>
|
||||
<fieldset-section style={{ display: 'inline'}}>
|
||||
{/* toggle between LBC and fiat buttons */}
|
||||
<div className={'txo__radios'} style={{ display: 'inline'}}>
|
||||
{/* toggle to LBC */}
|
||||
<Button
|
||||
button="alt"
|
||||
onClick={(e) => handleChange({ changedParameterKey: QUERY_NAME_CURRENCY, value: 'credits' })}
|
||||
|
@ -303,6 +305,7 @@ function TxoList(props: Props) {
|
|||
})}
|
||||
label={__('Credits')}
|
||||
/>
|
||||
{/* toggle to fiat */}
|
||||
<Button
|
||||
button="alt"
|
||||
onClick={(e) => handleChange({ changedParameterKey: QUERY_NAME_CURRENCY, value: 'fiat' })}
|
||||
|
@ -322,8 +325,10 @@ function TxoList(props: Props) {
|
|||
? <div>
|
||||
{/* LBC transactions section */}
|
||||
<div className="card__body-actions">
|
||||
<div className="card__actions">
|
||||
<div className="card__actions card__actions--between">
|
||||
<div className="card__actions--inline">
|
||||
<div>
|
||||
{/* LBC transaction type dropdown */}
|
||||
<FormField
|
||||
type="select"
|
||||
name="type"
|
||||
|
@ -371,6 +376,7 @@ function TxoList(props: Props) {
|
|||
<fieldset-section>
|
||||
<label>{__('Status')}</label>
|
||||
<div className={'txo__radios'}>
|
||||
{/* active transactions button */}
|
||||
<Button
|
||||
button="alt"
|
||||
onClick={(e) => handleChange({ changedParameterKey: TXO.ACTIVE, value: 'active' })}
|
||||
|
@ -379,6 +385,7 @@ function TxoList(props: Props) {
|
|||
})}
|
||||
label={__('Active')}
|
||||
/>
|
||||
{/* historical transactions button */}
|
||||
<Button
|
||||
button="alt"
|
||||
onClick={(e) => handleChange({ changedParameterKey: TXO.ACTIVE, value: 'spent' })}
|
||||
|
@ -387,6 +394,7 @@ function TxoList(props: Props) {
|
|||
})}
|
||||
label={__('Historical')}
|
||||
/>
|
||||
{/* all transactions button */}
|
||||
<Button
|
||||
button="alt"
|
||||
onClick={(e) => handleChange({ changedParameterKey: TXO.ACTIVE, value: 'all' })}
|
||||
|
@ -399,8 +407,10 @@ function TxoList(props: Props) {
|
|||
</fieldset-section>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{/* TODO: use card-between to display this properly */}
|
||||
<div className="card__actions--inline" style={{marginLeft: '181px'}}>
|
||||
{/* export and refresh buttons */}
|
||||
<div className="card__actions--inline">
|
||||
{!isFetchingTransactions && transactionsFile === null && (
|
||||
<label>{<span className="error__text">{__('Failed to process fetched data.')}</span>}</label>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue