Skip to content

Commit

Permalink
Fix reported lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 authored Sep 26, 2023
1 parent 030c27b commit b02c978
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/components/audit-form/audit-form.component.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { formatDatetime, parseDate } from "@openmrs/esm-framework";
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { formatDatetime, parseDate } from '@openmrs/esm-framework';
import {

Check failure on line 4 in src/components/audit-form/audit-form.component.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `⏎··StructuredListWrapper,⏎··StructuredListRow,⏎··StructuredListCell,⏎··StructuredListBody,⏎` with `·StructuredListWrapper,·StructuredListRow,·StructuredListCell,·StructuredListBody·`
StructuredListWrapper,
StructuredListRow,
StructuredListCell,
StructuredListBody,
} from "@carbon/react";
import type { EncounterType } from "../../types";
} from '@carbon/react';
import type { EncounterType } from '../../types';

type FormGroupData = {
interface FormGroupData {
name: string;
uuid: string;
version: string;
encounterType: EncounterType;
description: string;
display?: string;
auditInfo: any;

Check failure on line 19 in src/components/audit-form/audit-form.component.tsx

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
};
}

type AuditFormProps = {
interface AuditFormProps {
form: FormGroupData;
};
}

const AuditForm: React.FC<AuditFormProps> = ({ form }) => {
const { t } = useTranslation();
const [name, setName] = useState("");
const [description, setDescription] = useState("");
const [encounterType, setEncounterType] = useState("");
const [version, setVersion] = useState("");
const [name, setName] = useState('');
const [description, setDescription] = useState('');
const [encounterType, setEncounterType] = useState('');
const [version, setVersion] = useState('');

useEffect(() => {
if (form) {
Expand Down

0 comments on commit b02c978

Please sign in to comment.