Skip to content

Commit

Permalink
Update form-editor.component.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 authored Sep 26, 2023
1 parent 3aef36e commit 865a242
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/components/form-editor/form-editor.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ import {
TabList,
TabPanels,
TabPanel,
} from "@carbon/react";
import { Download } from "@carbon/react/icons";
import { useParams } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { ExtensionSlot } from "@openmrs/esm-framework";
import type { OHRIFormSchema } from "@openmrs/openmrs-form-engine-lib";
import type { Schema } from "../../types";
import { useClobdata } from "../../hooks/useClobdata";
import { useForm } from "../../hooks/useForm";
import ActionButtons from "../action-buttons/action-buttons.component";
import FormRenderer from "../form-renderer/form-renderer.component";
import InteractiveBuilder from "../interactive-builder/interactive-builder.component";
import SchemaEditor from "../schema-editor/schema-editor.component";
import styles from "./form-editor.scss";
import AuditForm from "../audit-form/audit-form.component";
} from '@carbon/react';
import { Download } from '@carbon/react/icons';
import { useParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { ExtensionSlot } from '@openmrs/esm-framework';
import type { OHRIFormSchema } from '@openmrs/openmrs-form-engine-lib';
import type { Schema } from '../../types';
import { useClobdata } from '../../hooks/useClobdata';
import { useForm } from '../../hooks/useForm';
import ActionButtons from '../action-buttons/action-buttons.component';
import FormRenderer from '../form-renderer/form-renderer.component';
import InteractiveBuilder from '../interactive-builder/interactive-builder.component';
import SchemaEditor from '../schema-editor/schema-editor.component';
import styles from './form-editor.scss';
import AuditForm from '../audit-form/audit-form.component';

interface ErrorProps {
error: Error;
Expand Down Expand Up @@ -308,10 +308,10 @@ const FormEditor: React.FC = () => {
<Column lg={8} md={8} className={styles.column}>
<ActionButtons schema={schema} t={t} />
<Tabs>
<TabList aria-label="Form previews">
<Tab>{t("preview", "Preview")}</Tab>
<Tab>{t("interactiveBuilder", "Interactive Builder")}</Tab>
{<Tab>{form && t("auditForm")}</Tab>}
<TabList aria-label='Form previews'>

Check failure on line 311 in src/components/form-editor/form-editor.component.tsx

View workflow job for this annotation

GitHub Actions / build

Replace `'Form·previews'` with `"Form·previews"`
<Tab>{t('preview', 'Preview')}</Tab>
<Tab>{t('interactiveBuilder', 'Interactive Builder')}</Tab>
{<Tab>{form && t('auditForm')}</Tab>}
</TabList>
<TabPanels>
<TabPanel>
Expand Down

0 comments on commit 865a242

Please sign in to comment.