diff --git a/package-lock.json b/package-lock.json index ba13a5f2..4f328779 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7861,7 +7861,6 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", - "dev": true, "optional": true, "dependencies": { "iconv-lite": "^0.6.2" diff --git a/src/app/App.tsx b/src/app/App.tsx index c09f1106..a17a6199 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -7,7 +7,7 @@ const Landing = lazy(() => import("../pages/landing")); const Home = lazy(() => import("../pages/home")); const Certification = lazy(() => import("../pages/certification/Certification")); const TestingHistory = lazy(() => import("../pages/testingHistory")); -const ReportUpload = lazy(() => import("../pages/auditing/reportUpload/ReportUpload")) +const ReportUpload = lazy(() => import("../pages/reportUpload")) const CertificationResult = lazy(() => import("../pages/certification/certification-result/CertificationResult")); const ComingSoon = () => ( diff --git a/src/components/CertificationMetadataForm/CertificationMetadataForm.tsx b/src/components/CertificationMetadataForm/CertificationMetadataForm.tsx deleted file mode 100644 index 8c14c27b..00000000 --- a/src/components/CertificationMetadataForm/CertificationMetadataForm.tsx +++ /dev/null @@ -1,203 +0,0 @@ -import { useCallback, useEffect } from "react"; - -import { Button } from "@mui/material"; -import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline'; - -import { Form } from "compositions/Form/Form"; -import { Input } from "compositions/Form/components/Input"; -import DAPPScript, { IInfo } from "components/DAPPScript/DAPPScript"; -import TextArea from "components/TextArea/TextArea"; -import { Option } from "components/Dropdown/Dropdown"; -import { useFieldArray } from "react-hook-form"; -import Dropdown from "components/Dropdown/Dropdown"; - -export const fieldArrayName: string = "dAppScripts"; - -interface IFieldInfo { - label: string; - type: string; - required: boolean; - id: string; - placeholder?: string; - minRows?: number; - maxRows?: number; - options?: Option[]; - tooltipText?: string; -} - -interface FieldConfig { - config: IFieldInfo; - componentType: string; - form: any; -} - -export interface ICertificationMetadataForm { - commonField: FieldConfig[]; - auditorInfo: FieldConfig[]; - auditorReport: FieldConfig[]; - addScripts: { scriptFields: IInfo[]; smartContractInfo: IInfo[] }; -} - -const Component = (props: FieldConfig) => { - const { id, ...rest } = props.config; - - switch (props.componentType) { - case "text": - return ( - - ); - case "textarea": - return