Skip to content

Commit

Permalink
adds missing useTranslation import
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 11, 2024
1 parent 47a1b74 commit 77a7a95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/Facility/Investigations/InvestigationTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SelectFormField } from "../../Form/FormFields/SelectFormField";
import TextFormField from "../../Form/FormFields/TextFormField";
import { classNames } from "../../../Utils/utils";
import { useState } from "react";
import { useTranslation } from "react-i18next";

const TestRow = ({ data, i, onChange, showForm, value, isChanged }: any) => {
return (
Expand Down Expand Up @@ -70,6 +71,7 @@ export const InvestigationTable = ({
handleUpdateCancel,
handleSave,
}: any) => {
const { t } = useTranslation();
const [searchFilter, setSearchFilter] = useState("");
const [showForm, setShowForm] = useState(false);
const filterTests = Object.values(data).filter((i: any) => {
Expand Down

0 comments on commit 77a7a95

Please sign in to comment.