From f34bb986ed2ad68a9c6c3560547c50add75c9983 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 30 Nov 2021 11:31:59 +0100 Subject: [PATCH] fix: remove unused arg from mapStateToProps --- .../components/profile/components/certifications.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/client/src/components/profile/components/certifications.tsx b/client/src/components/profile/components/certifications.tsx index bd58dc9766..88f98d7f17 100644 --- a/client/src/components/profile/components/certifications.tsx +++ b/client/src/components/profile/components/certifications.tsx @@ -10,8 +10,10 @@ import type { CurrentCert } from '../../../redux/prop-types'; import { ButtonSpacer, FullWidthRow, Link, Spacer } from '../../helpers'; import './certifications.css'; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -const mapStateToProps = (state: any, props: CertificationProps) => +const mapStateToProps = ( + state: Record, + props: CertificationProps +) => createSelector( certificatesByNameSelector(props.username), ({ @@ -28,10 +30,7 @@ const mapStateToProps = (state: any, props: CertificationProps) => currentCerts, legacyCerts }) - - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - )(state, props); + )(state); interface CertificationProps { currentCerts?: CurrentCert[];