mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-11 13:00:56 -04:00
feat: split rdbms into individual blocks and two challengeTypes (#44978)
* feat: split english rdbms into individual blocks fix: stuff fix: remove from partiallyComplete array on submit fix: add suggestion Update client/i18n/locales/english/translations.json Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/i18n/locales/english/intro.json Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/i18n/locales/english/intro.json Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/i18n/locales/english/intro.json Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Update client/src/templates/Challenges/codeally/show.tsx Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix: prettier * fix: style suggestion * Apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ export enum FlashMessages {
|
||||
CertClaimSuccess = 'flash.cert-claim-success',
|
||||
CertificateMissing = 'flash.certificate-missing',
|
||||
CertsPrivate = 'flash.certs-private',
|
||||
CompleteProjectFirst = 'flash.complete-project-first',
|
||||
CreateTokenErr = 'flash.create-token-err',
|
||||
DeleteTokenErr = 'flash.delete-token-err',
|
||||
EmailValid = 'flash.email-valid',
|
||||
|
||||
@@ -17,7 +17,7 @@ import './webhook-token.css';
|
||||
|
||||
type WebhookTokenProps = {
|
||||
deleteWebhookToken: () => void;
|
||||
isSuperBlockPage?: boolean;
|
||||
isChallengePage?: boolean;
|
||||
postWebhookToken: () => void;
|
||||
t: TFunction;
|
||||
webhookToken: string | null;
|
||||
@@ -69,9 +69,9 @@ class WebhookToken extends Component<WebhookTokenProps, WebhookTokenState> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { isSuperBlockPage = false, t, webhookToken = null } = this.props;
|
||||
const { isChallengePage = false, t, webhookToken = null } = this.props;
|
||||
|
||||
return isSuperBlockPage ? (
|
||||
return isChallengePage ? (
|
||||
<>
|
||||
{!webhookToken && (
|
||||
<div className='alert alert-info'>
|
||||
|
||||
Reference in New Issue
Block a user