It was the other way around

This commit is contained in:
koalasat 2024-11-26 11:14:19 +01:00
parent 3278aab28f
commit 5041376377
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -81,16 +81,16 @@ const BookControl = ({
let component = <CheckBoxOutlineBlankIcon />; let component = <CheckBoxOutlineBlankIcon />;
let text = t('ANY'); let text = t('ANY');
if (value === 'sell') { if (value === 'sell') {
component = <SendReceiveIcon color='primary' />; component = <SendReceiveIcon color='secondary' sx={{ transform: 'scaleX(-1)' }} />;
text = t('Sell'); text = t('Sell');
} else if (value === 'buy') { } else if (value === 'buy') {
component = <SendReceiveIcon color='secondary' sx={{ transform: 'scaleX(-1)' }} />; component = <SendReceiveIcon color='primary' />;
text = t('Buy'); text = t('Buy');
} else if (value === 'swapin') { } else if (value === 'swapin') {
component = <SwapCalls color='primary' />; component = <SwapCalls color='secondary' />;
text = t('Swap In'); text = t('Swap In');
} else if (value === 'swapout') { } else if (value === 'swapout') {
component = <SwapCalls color='secondary' />; component = <SwapCalls color='primary' />;
text = t('Swap Out'); text = t('Swap Out');
} }
@ -158,7 +158,7 @@ const BookControl = ({
</MenuItem> </MenuItem>
<MenuItem value='sell' style={{ width: '8em' }}> <MenuItem value='sell' style={{ width: '8em' }}>
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}> <div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
<SendReceiveIcon color='primary' /> <SendReceiveIcon color='secondary' sx={{ transform: 'scaleX(-1)' }} />
<Typography sx={{ width: '2em' }} align='right' color='text.secondary'> <Typography sx={{ width: '2em' }} align='right' color='text.secondary'>
{' ' + t('Sell')} {' ' + t('Sell')}
</Typography> </Typography>
@ -166,7 +166,7 @@ const BookControl = ({
</MenuItem> </MenuItem>
<MenuItem value='buy' style={{ width: '8em' }}> <MenuItem value='buy' style={{ width: '8em' }}>
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}> <div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
<SendReceiveIcon color='secondary' sx={{ transform: 'scaleX(-1)' }} /> <SendReceiveIcon color='primary' />
<Typography sx={{ width: '2em' }} align='right' color='text.secondary'> <Typography sx={{ width: '2em' }} align='right' color='text.secondary'>
{' ' + t('Buy')} {' ' + t('Buy')}
</Typography> </Typography>
@ -174,7 +174,7 @@ const BookControl = ({
</MenuItem> </MenuItem>
<MenuItem value='swapin' style={{ width: '8em' }}> <MenuItem value='swapin' style={{ width: '8em' }}>
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}> <div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
<SwapCalls color='primary' /> <SwapCalls color='secondary' />
<Typography sx={{ width: '2em' }} align='right' color='text.secondary'> <Typography sx={{ width: '2em' }} align='right' color='text.secondary'>
{' ' + t('Swap In')} {' ' + t('Swap In')}
</Typography> </Typography>
@ -182,7 +182,7 @@ const BookControl = ({
</MenuItem> </MenuItem>
<MenuItem value='swapout' style={{ width: '8em' }}> <MenuItem value='swapout' style={{ width: '8em' }}>
<div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}> <div style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
<SwapCalls color='secondary' /> <SwapCalls color='primary' />
<Typography sx={{ width: '2em' }} align='right' color='text.secondary'> <Typography sx={{ width: '2em' }} align='right' color='text.secondary'>
{' ' + t('Swap Out')} {' ' + t('Swap Out')}
</Typography> </Typography>