fix: remove unused arg from mapStateToProps
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
a79fa9aa6b
commit
f34bb986ed
@ -10,8 +10,10 @@ import type { CurrentCert } from '../../../redux/prop-types';
|
|||||||
import { ButtonSpacer, FullWidthRow, Link, Spacer } from '../../helpers';
|
import { ButtonSpacer, FullWidthRow, Link, Spacer } from '../../helpers';
|
||||||
import './certifications.css';
|
import './certifications.css';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
const mapStateToProps = (
|
||||||
const mapStateToProps = (state: any, props: CertificationProps) =>
|
state: Record<string, unknown>,
|
||||||
|
props: CertificationProps
|
||||||
|
) =>
|
||||||
createSelector(
|
createSelector(
|
||||||
certificatesByNameSelector(props.username),
|
certificatesByNameSelector(props.username),
|
||||||
({
|
({
|
||||||
@ -28,10 +30,7 @@ const mapStateToProps = (state: any, props: CertificationProps) =>
|
|||||||
currentCerts,
|
currentCerts,
|
||||||
legacyCerts
|
legacyCerts
|
||||||
})
|
})
|
||||||
|
)(state);
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
)(state, props);
|
|
||||||
|
|
||||||
interface CertificationProps {
|
interface CertificationProps {
|
||||||
currentCerts?: CurrentCert[];
|
currentCerts?: CurrentCert[];
|
||||||
|
Reference in New Issue
Block a user