mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-25 22:41:30 +02:00
Merge pull request #573 from therealrinku/fix
assert operator dropdown bgcolor fix
This commit is contained in:
commit
e7f130f8a1
@ -1,4 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { useTheme } from 'providers/Theme/index';
|
||||||
|
import darkTheme from 'themes/dark';
|
||||||
|
import lightTheme from 'themes/light';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assertion operators
|
* Assertion operators
|
||||||
@ -76,10 +79,16 @@ const AssertionOperator = ({ operator, onChange }) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const { storedTheme } = useTheme();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<select value={operator} onChange={handleChange} className="mousetrap">
|
<select value={operator} onChange={handleChange} className="mousetrap">
|
||||||
{operators.map((operator) => (
|
{operators.map((operator) => (
|
||||||
<option key={operator} value={operator}>
|
<option
|
||||||
|
style={{ backgroundColor: storedTheme === 'dark' ? darkTheme.bg : lightTheme.bg }}
|
||||||
|
key={operator}
|
||||||
|
value={operator}
|
||||||
|
>
|
||||||
{getLabel(operator)}
|
{getLabel(operator)}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user