fix(learn): versioning for new certificate slugs (#39087)
This commit is contained in:
committed by
GitHub
parent
b3d5cde75e
commit
6e5988da4e
@@ -45,21 +45,21 @@ const propTypes = {
|
||||
),
|
||||
createFlashMessage: PropTypes.func.isRequired,
|
||||
is2018DataVisCert: PropTypes.bool,
|
||||
is2020DataAnalysisPyCert: PropTypes.bool,
|
||||
is2020InfosecCert: PropTypes.bool,
|
||||
is2020MachineLearningPyCert: PropTypes.bool,
|
||||
is2020QaCert: PropTypes.bool,
|
||||
is2020SciCompPyCert: PropTypes.bool,
|
||||
isApisMicroservicesCert: PropTypes.bool,
|
||||
isBackEndCert: PropTypes.bool,
|
||||
isDataAnalysisPyCertV7: PropTypes.bool,
|
||||
isDataVisCert: PropTypes.bool,
|
||||
isFrontEndCert: PropTypes.bool,
|
||||
isFrontEndLibsCert: PropTypes.bool,
|
||||
isFullStackCert: PropTypes.bool,
|
||||
isHonest: PropTypes.bool,
|
||||
isInfosecCertV7: PropTypes.bool,
|
||||
isInfosecQaCert: PropTypes.bool,
|
||||
isJsAlgoDataStructCert: PropTypes.bool,
|
||||
isMachineLearningPyCertV7: PropTypes.bool,
|
||||
isQaCertV7: PropTypes.bool,
|
||||
isRespWebDesignCert: PropTypes.bool,
|
||||
isSciCompPyCertV7: PropTypes.bool,
|
||||
updateLegacyCert: PropTypes.func.isRequired,
|
||||
username: PropTypes.string,
|
||||
verifyCert: PropTypes.func.isRequired
|
||||
@@ -75,14 +75,14 @@ const isCertSelector = ({
|
||||
isDataVisCert,
|
||||
isFrontEndCert,
|
||||
isInfosecQaCert,
|
||||
is2020QaCert,
|
||||
is2020InfosecCert,
|
||||
isQaCertV7,
|
||||
isInfosecCertV7,
|
||||
isFrontEndLibsCert,
|
||||
isFullStackCert,
|
||||
isRespWebDesignCert,
|
||||
is2020SciCompPyCert,
|
||||
is2020DataAnalysisPyCert,
|
||||
is2020MachineLearningPyCert
|
||||
isSciCompPyCertV7,
|
||||
isDataAnalysisPyCertV7,
|
||||
isMachineLearningPyCertV7
|
||||
}) => ({
|
||||
is2018DataVisCert,
|
||||
isApisMicroservicesCert,
|
||||
@@ -91,14 +91,14 @@ const isCertSelector = ({
|
||||
isDataVisCert,
|
||||
isFrontEndCert,
|
||||
isInfosecQaCert,
|
||||
is2020QaCert,
|
||||
is2020InfosecCert,
|
||||
isQaCertV7,
|
||||
isInfosecCertV7,
|
||||
isFrontEndLibsCert,
|
||||
isFullStackCert,
|
||||
isRespWebDesignCert,
|
||||
is2020SciCompPyCert,
|
||||
is2020DataAnalysisPyCert,
|
||||
is2020MachineLearningPyCert
|
||||
isSciCompPyCertV7,
|
||||
isDataAnalysisPyCertV7,
|
||||
isMachineLearningPyCertV7
|
||||
});
|
||||
|
||||
const isCertMapSelector = createSelector(
|
||||
@@ -108,27 +108,27 @@ const isCertMapSelector = createSelector(
|
||||
isApisMicroservicesCert,
|
||||
isJsAlgoDataStructCert,
|
||||
isInfosecQaCert,
|
||||
is2020QaCert,
|
||||
is2020InfosecCert,
|
||||
isQaCertV7,
|
||||
isInfosecCertV7,
|
||||
isFrontEndLibsCert,
|
||||
isRespWebDesignCert,
|
||||
isDataVisCert,
|
||||
isFrontEndCert,
|
||||
isBackEndCert,
|
||||
is2020SciCompPyCert,
|
||||
is2020DataAnalysisPyCert,
|
||||
is2020MachineLearningPyCert
|
||||
isSciCompPyCertV7,
|
||||
isDataAnalysisPyCertV7,
|
||||
isMachineLearningPyCertV7
|
||||
}) => ({
|
||||
'Responsive Web Design': isRespWebDesignCert,
|
||||
'JavaScript Algorithms and Data Structures': isJsAlgoDataStructCert,
|
||||
'Front End Libraries': isFrontEndLibsCert,
|
||||
'Data Visualization': is2018DataVisCert,
|
||||
'APIs and Microservices': isApisMicroservicesCert,
|
||||
'Quality Assurance': is2020QaCert,
|
||||
'Information Security': is2020InfosecCert,
|
||||
'Scientific Computing with Python': is2020SciCompPyCert,
|
||||
'Data Analysis with Python': is2020DataAnalysisPyCert,
|
||||
'Machine Learning with Python': is2020MachineLearningPyCert,
|
||||
'Quality Assurance': isQaCertV7,
|
||||
'Information Security': isInfosecCertV7,
|
||||
'Scientific Computing with Python': isSciCompPyCertV7,
|
||||
'Data Analysis with Python': isDataAnalysisPyCertV7,
|
||||
'Machine Learning with Python': isMachineLearningPyCertV7,
|
||||
'Legacy Front End': isFrontEndCert,
|
||||
'Legacy Data Visualization': isDataVisCert,
|
||||
'Legacy Back End': isBackEndCert,
|
||||
|
Reference in New Issue
Block a user