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 5, 2021
1 parent ed5c0d0 commit cdbc57e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/apps/concepts/components/ViewConceptsHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { Link, Switch } from "react-router-dom";
import { Link } from "react-router-dom";
import Header from "../../../components/Header";
import {
DICTIONARY_CONTAINER,
Expand All @@ -26,8 +26,6 @@ import {
import { APISource } from "../../sources";
import { AccountTreeOutlined, FolderOpen, Search as SearchIcon } from "@material-ui/icons";
import { APIDictionary } from '../../dictionaries/types';
import { VerifiedSource } from "../../../components/VerifiedSource";
import FormControlLabel from "@material-ui/core/FormControlLabel";

interface Props {
containerType: string;
Expand All @@ -37,8 +35,6 @@ interface Props {
children?: React.ReactNode[];
sources: APISource[];
dictionaries: APIDictionary[];
showOnlyVerified: boolean;
toggleShowVerified: () => void;
}

const useStyles = makeStyles((theme: Theme) =>
Expand Down Expand Up @@ -81,9 +77,9 @@ const ViewConceptsHeader: React.FC<Props> = ({
addConceptToDictionary,
children,
sources,
dictionaries,
showOnlyVerified,
toggleShowVerified
dictionaries
// showOnlyVerified,
// toggleShowVerified
}) => {
const [showSources, setShowSources] = useState(false);
const [preferredSources, setPreferredSources] = useState< { name: string; url: string }[] >();
Expand Down Expand Up @@ -165,7 +161,7 @@ const ViewConceptsHeader: React.FC<Props> = ({
</InputAdornment>
}
/>
<FormControlLabel
{/* <FormControlLabel
control={
<Switch
checkedIcon={<VerifiedSource />}
Expand All @@ -178,7 +174,7 @@ const ViewConceptsHeader: React.FC<Props> = ({
label={
showOnlyVerified ? `Showing verified {"Select a recommended source"} only` : `Show verified {"Select an alternative source"} only`
}
/>
/> */}
</Grid>
{preferredSources?.map(({ name, url }) => (
<MenuItem
Expand Down

0 comments on commit cdbc57e

Please sign in to comment.