File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import FormControl from "@mui/material/FormControl"
33import InputLabel from "@mui/material/InputLabel"
44import Select from "@mui/material/Select"
55import MenuItem from "@mui/material/MenuItem"
6+ import { useCurrency } from "../context/CurrencyContext"
67import TextField from "@mui/material/TextField"
78import DeleteIcon from "@mui/icons-material/Delete"
89import FormGroup from "@mui/material/FormGroup"
@@ -456,6 +457,7 @@ export function initialiseFilter(filter) {
456457}
457458
458459export default function DeviceFilter ( props ) {
460+ const { currency : globalCurrency } = useCurrency ( )
459461 const handleSearchChange = ( event , field ) => {
460462 props . onChange ( props . ident , {
461463 field : field || props . filter . field ,
@@ -958,7 +960,12 @@ export default function DeviceFilter(props) {
958960 variant = "standard"
959961 />
960962 </ StyledFormControl >
961- < StyledFormControl variant = "standard" >
963+ < StyledFormControl
964+ variant = "standard"
965+ sx = { {
966+ display : globalCurrency !== `Original` ? `none` : `inline-flex` ,
967+ } }
968+ >
962969 < InputLabel > Currency</ InputLabel >
963970 < Select
964971 value = { props . filter . priceCurrency }
You can’t perform that action at this time.
0 commit comments