Skip to content

Commit

Permalink
Clean up linting errors in KYCCasePending
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund committed Sep 22, 2023
1 parent 8aa85e1 commit 86d975b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
11 changes: 3 additions & 8 deletions src/views/KYC/KYCCaseDetail/KYCCasePending/KYCCasePending.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ import {Error, Pending} from "@carbon/icons-react";
import './KYCCasePending.scss';
import {selectedKycCaseAtom} from "../../../../atoms";
import {CustomerRisk, DocumentList, KycSummary, NegativeNews, Stack} from "../../../../components";
import {
CustomerRiskAssessmentModel, isCustomerRiskAssessmentModel, isKycCaseSummaryModel, isNegativeScreeningModel,
KycCaseModel,
KycCaseSummaryModel,
NegativeScreeningModel
} from "../../../../models";
import {KycCaseModel} from "../../../../models";
import {kycCaseManagementApi} from "../../../../services";

export interface KYCCasePendingProps {
Expand All @@ -40,11 +35,11 @@ export const KYCCasePending: React.FunctionComponent<KYCCasePendingProps> = (pro
const getIcon = (data?: {error?: string}): ComponentType<{size: number}> => {

if (!data) {
return Pending as any;
return Pending as never;
}

if (data.error) {
return Error as any;
return Error as never;
}

return undefined
Expand Down
21 changes: 0 additions & 21 deletions src/views/Main/Main.tsx

This file was deleted.

0 comments on commit 86d975b

Please sign in to comment.