mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-25 10:01:30 -04:00
refactor(client,curriculum): remove isComingSoon property (#63615)
This commit is contained in:
@@ -323,7 +323,6 @@ exports.createSchemaCustomization = ({ actions }) => {
|
||||
hooks: Hooks
|
||||
id: String
|
||||
instructions: String
|
||||
isComingSoon: Boolean
|
||||
isLastChallengeInBlock: Boolean
|
||||
isPrivate: Boolean
|
||||
module: String
|
||||
|
||||
@@ -213,7 +213,6 @@ export type ChallengeNode = {
|
||||
hooks?: Hooks;
|
||||
id: string;
|
||||
instructions: string;
|
||||
isComingSoon: boolean;
|
||||
internal?: {
|
||||
content: string;
|
||||
contentDigest: string;
|
||||
|
||||
@@ -47,7 +47,6 @@ const defaultProps = {
|
||||
helpCategory: 'mockHelpCategory',
|
||||
id: 'mockId',
|
||||
instructions: 'mockInstructions',
|
||||
isComingSoon: false,
|
||||
internal: {
|
||||
content: 'mockContent',
|
||||
contentDigest: 'mockContentDigest',
|
||||
|
||||
@@ -248,7 +248,6 @@ const schema = Joi.object().keys({
|
||||
then: Joi.string().min(1).required(),
|
||||
otherwise: Joi.string().allow('')
|
||||
}),
|
||||
isComingSoon: Joi.bool(),
|
||||
module: Joi.string().when('superBlock', {
|
||||
is: chapterBasedSuperBlocks,
|
||||
then: Joi.required(),
|
||||
|
||||
Reference in New Issue
Block a user