Skip to content

Commit

Permalink
OCLOMRS-1044:Bug Fix: Pick Concepts from Source and Dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
jwamalwa committed Sep 30, 2021
1 parent 8d62e69 commit a76dc20
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/apps/concepts/components/ViewConceptsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const ViewConceptsHeader: React.FC<Props> = ({
handleSwitchSourceClose
] = useAnchor();

// const [q, setQ] = useState(initialQ);
const getTitleBasedOnContainerType = () => {
return isAddToDictionary
? `Import existing concept from ${getContainerIdFromUrl(containerUrl)}`
Expand Down Expand Up @@ -136,17 +137,17 @@ const ViewConceptsHeader: React.FC<Props> = ({
{showSources ? "Select a recommended source" : "Select an alternative source"}
</Button> */}
<Input
//onChange={e => setQ(e.target.value)}
// ]value={q}
// onChange={e => setQ(e.target.value)}
// value={q}
color="secondary"
type="search"
fullWidth
placeholder={`Select an alternative source`}
placeholder={`choose a source`}
data-testid="searchInput"
endAdornment={
<InputAdornment position="end">
<IconButton
// onClick={() => onSearch(q)}
onClick={() => setShowSources(!showSources)}
data-testid="searchButton"
>
<SearchIcon />
Expand Down

0 comments on commit a76dc20

Please sign in to comment.