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