remove unused imports

This commit is contained in:
2024-06-19 06:32:38 +01:00
parent e4a1903b48
commit b0e2bb6e14
263 changed files with 1458 additions and 2693 deletions
+3 -21
View File
@@ -1,28 +1,10 @@
import Link from "next/link";
import { useRouter } from "next/router";
import { JSONPath as jsonpath } from "jsonpath-plus";
import useTranslation from "next-translate/useTranslation";
import xpath from "xpath";
import { JSONPath as jsonpath } from "jsonpath-plus";
import { useSelector, shallowEqual, connect } from "react-redux";
import { bytesToSize, getPickListLabel } from "../../components/utils";
import fieldLookup from "../../data/crmfieldlookuptranslations.json";
import {
getFormCollectionByID,
getPickListLabel,
getRadioLabel,
bytesToSize,
} from "../../components/utils";
import ReactPDF, {
Document,
Page,
Text,
View,
Image,
StyleSheet,
PDFViewer,
Font,
} from "@react-pdf/renderer";
import _ from "lodash";
import { StyleSheet, Text, View } from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { DOMParser, XMLSerializer } from "@xmldom/xmldom";
+3 -6
View File
@@ -1,16 +1,13 @@
import ReactPDF, {
import {
Document,
Image,
Page,
StyleSheet,
Text,
View,
Image,
StyleSheet,
PDFViewer,
Font,
} from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import useTranslation from "next-translate/useTranslation";
const styles = StyleSheet.create({
page: {
@@ -1,21 +1,16 @@
import ReactPDF, {
import {
Document,
Page,
Text,
View,
Image,
Page,
StyleSheet,
PDFViewer,
Font,
Text,
View
} from "@react-pdf/renderer";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import getT from "next-translate/getT";
import useTranslation from "next-translate/useTranslation";
import transLookupCY from "../../locales/cy/myrepresentations.json";
import transLookupEN from "../../locales/en/myrepresentations.json";
import { JSONPath as jsonpath } from "jsonpath-plus";
const getTrans = (locale, key) => {
let jsonQuery = `$.${key}`;
+4 -8
View File
@@ -1,20 +1,16 @@
import ReactPDF, {
import {
Document,
Page,
Text,
View,
Image,
Page,
StyleSheet,
PDFViewer,
Font,
Text,
View
} from "@react-pdf/renderer";
import { createElement } from "react";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";
import transLookupCY from "../../locales/cy/myrepresentations.json";
import transLookupEN from "../../locales/en/myrepresentations.json";
import { JSONPath as jsonpath } from "jsonpath-plus";
const getTrans = (locale, key) => {
let jsonQuery = `$.${key}`;
@@ -1,14 +1,11 @@
import ReactPDF, {
import {
Document,
Image,
Page,
StyleSheet,
Text,
View,
Image,
StyleSheet,
PDFViewer,
Font,
} from "@react-pdf/renderer";
import { createElement } from "react";
import Html from "react-pdf-html";
import { getFormCollectionByID } from "../../components/utils";