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 Oct 4, 2021
1 parent ac397b8 commit eb3258f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/apps/concepts/components/ViewConceptsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { getContainerIdFromUrl } from "../utils";
import {
Button,
createStyles,
Grid,
IconButton,
Input,
InputAdornment,
Expand Down Expand Up @@ -130,12 +131,22 @@ const ViewConceptsHeader: React.FC<Props> = ({
open={Boolean(switchSourceAnchor)}
onClose={handleSwitchSourceClose}
>
<Grid
container
// eslint-disable-next-line react/jsx-no-comment-textnodes
direction="column">
<Button
variant="text"
onClick={() => setShowSources(!showSources)}
>
{/* {showSources ? "Select a recommended source" : "Select an alternative source"} */}
</Button>
<Input
color="secondary"
type="search"
fullWidth
placeholder= {showSources ? "Select a recommended source" : "Select an alternative source"}
data-testid="searchInput"
placeholder= {"Select an alternative source"}
//data-testid="switch-source"
endAdornment={
<InputAdornment position="end">
<IconButton
Expand All @@ -147,6 +158,7 @@ const ViewConceptsHeader: React.FC<Props> = ({
</InputAdornment>
}
/>
</Grid>
{preferredSources?.map(({ name, url }) => (
<MenuItem
// replace because we want to keep the back button useful
Expand Down

0 comments on commit eb3258f

Please sign in to comment.