diff --git a/app/client/src/features/reports/ReportLicenceComments.jsx b/app/client/src/features/reports/ReportLicenceComments.jsx deleted file mode 100644 index 2837f6d..0000000 --- a/app/client/src/features/reports/ReportLicenceComments.jsx +++ /dev/null @@ -1,83 +0,0 @@ -import React, { useEffect } from "react"; -import { useForm } from "react-hook-form"; -import { useSelector, useDispatch } from "react-redux"; -import { Row, Col, Form, Button } from "react-bootstrap"; - -import DocGenDownloadBar from "../../components/DocGenDownloadBar"; - -import { - generateReport, - fetchReportJob, - selectReportsJob, - completeReportJob, - startLicenceCommentsJob, -} from "./reportsSlice"; - -import { REPORTS } from "../../utilities/constants"; - -export default function ReportLicenceComments() { - const dispatch = useDispatch(); - - const job = useSelector(selectReportsJob); - const { pendingDocuments } = job; - - const form = useForm({ - reValidateMode: "onBlur", - }); - const { register, watch } = form; - - const watchLicenceNumber = watch("licenceNumber", null); - - useEffect(() => { - if (job.id && job.type === REPORTS.LICENCE_COMMENTS) { - dispatch(fetchReportJob()); - - if (pendingDocuments?.length > 0) { - dispatch(generateReport(pendingDocuments[0].documentId)); - } else { - dispatch(completeReportJob(job.id)); - } - } - }, [pendingDocuments]); // eslint-disable-line react-hooks/exhaustive-deps - - const onGenerateReport = () => { - dispatch( - startLicenceCommentsJob({ - licenceNumber: watchLicenceNumber, - }) - ); - }; - - return ( - <> - - - Licence Number - - - -   - - - -
- -
- - ); -} - -ReportLicenceComments.propTypes = {}; diff --git a/app/server/static/templates/reports/Licence_Comments_Template.xlsx b/app/server/static/templates/reports/Licence_Comments_Template.xlsx deleted file mode 100644 index 823dcb6..0000000 Binary files a/app/server/static/templates/reports/Licence_Comments_Template.xlsx and /dev/null differ