Skip to content

Commit

Permalink
OCLOMRS-965:Set Source to whatever user want it to be (maybe “Your Re…
Browse files Browse the repository at this point in the history
…cent Sources” instead of hardcoded)
  • Loading branch information
jwamalwa committed May 17, 2021
1 parent 3c800e9 commit 5744241
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/apps/concepts/components/ViewConceptsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import {
Menu,
MenuItem,
TextField,
Theme
Theme,
} from "@material-ui/core";
import { PREFERRED_SOURCES_VIEW_ONLY, useAnchor } from "../../../utils";
import { APISource } from "../../sources";
import { AccountTreeOutlined } from "@material-ui/icons";

interface Props {
containerType: string;
Expand Down Expand Up @@ -49,6 +50,10 @@ const useStyles = makeStyles((theme: Theme) =>
"&&:after": {
borderBottom: "none"
}
},
sourceIcon:{
marginRight: "0.2rem",
fill: "#8080809c"
}
})
);
Expand Down Expand Up @@ -130,6 +135,7 @@ const ViewConceptsHeader: React.FC<Props> = ({
onClick={handleSwitchSourceClose}
data-testid={name}
>
<AccountTreeOutlined className={classes.sourceIcon}/>
{name}
</MenuItem>
)
Expand All @@ -145,6 +151,7 @@ const ViewConceptsHeader: React.FC<Props> = ({
onClick={handleSwitchSourceClose}
data-testid={preferredSourceName}
>
<AccountTreeOutlined className={classes.sourceIcon}/>
{preferredSourceName}
</MenuItem>
)
Expand Down

0 comments on commit 5744241

Please sign in to comment.