From f48c80316ebb42328a5b24c0f94b4a0c55bd7417 Mon Sep 17 00:00:00 2001
From: sijumoncy <72241997+sijumoncy@users.noreply.github.com>
Date: Wed, 17 Jul 2024 12:12:32 +0530
Subject: [PATCH] lint: fixed lint issue
---
.../components/TextTranslationMerge/TranslationMergNavBar.jsx | 4 ++--
.../components/TextTranslationMerge/TranslationMergeUI.jsx | 3 ++-
.../components/TextTranslationMerge/UsfmConflictEditor.jsx | 3 ++-
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/renderer/src/components/TextTranslationMerge/TranslationMergNavBar.jsx b/renderer/src/components/TextTranslationMerge/TranslationMergNavBar.jsx
index 827a9f12..68d541cc 100644
--- a/renderer/src/components/TextTranslationMerge/TranslationMergNavBar.jsx
+++ b/renderer/src/components/TextTranslationMerge/TranslationMergNavBar.jsx
@@ -1,10 +1,10 @@
// import { Cog8ToothIcon } from '@heroicons/react/24/outline';
-import { useTranslation } from 'react-i18next';
+// import { useTranslation } from 'react-i18next';
function TranslationMergNavBar({
conflictedBooks, selectedBook, setSelectedBook, resolvedBooks, disableSelection, conflictedChapters, selectedChapter, setSelectedChapter,
}) {
- const { t } = useTranslation();
+ // const { t } = useTranslation();
return (
diff --git a/renderer/src/components/TextTranslationMerge/TranslationMergeUI.jsx b/renderer/src/components/TextTranslationMerge/TranslationMergeUI.jsx
index 827ea07c..510f3f9b 100644
--- a/renderer/src/components/TextTranslationMerge/TranslationMergeUI.jsx
+++ b/renderer/src/components/TextTranslationMerge/TranslationMergeUI.jsx
@@ -10,12 +10,13 @@ import { readUsfmFile } from '@/core/projects/userSettings';
import localforage from 'localforage';
import { flushSync } from 'react-dom';
import TranslationMergNavBar from './TranslationMergNavBar';
-import * as logger from '../../logger';
+// import * as logger from '../../logger';
import LoadingScreen from '../Loading/LoadingScreen';
import UsfmConflictEditor from './UsfmConflictEditor';
import { processAndIdentiyVerseChangeinUSFMJsons } from './processUsfmObjs';
import packageInfo from '../../../../package.json';
import { commitChanges } from '../Sync/Isomorphic/utils';
+/* eslint-disable import/no-unresolved , import/extensions */
import { useGrammartoPerf } from '@/hooks2/useGrammartoPerf';
const grammar = require('usfm-grammar');
diff --git a/renderer/src/components/TextTranslationMerge/UsfmConflictEditor.jsx b/renderer/src/components/TextTranslationMerge/UsfmConflictEditor.jsx
index 97120a27..d1ca1c3f 100644
--- a/renderer/src/components/TextTranslationMerge/UsfmConflictEditor.jsx
+++ b/renderer/src/components/TextTranslationMerge/UsfmConflictEditor.jsx
@@ -2,9 +2,10 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
- ArrowSmallDownIcon, ArrowSmallUpIcon, ArrowsUpDownIcon, ArrowPathRoundedSquareIcon,
+ ArrowSmallDownIcon, ArrowSmallUpIcon, ArrowPathRoundedSquareIcon,
} from '@heroicons/react/20/solid';
+/* eslint-disable no-unused-vars */
function UsfmConflictEditor({
usfmJsons, currentProjectMeta, selectedChapter, setUsfmJsons, setChapterResolveDone, resolvedChapters, selectedBook, resolvedBooks, conflictedChapters,
}) {