refactor: display solutions (#45139)
* refactor: re-organise show-project-links * refactor: update ChallengeFile's declared shape * fix: handle missing challenge solution * refactor: use display function for Certification * refactor: use display function for TimeLine * refactor: use common component for timeline + cert * fix: handle legacy solutions * refactor: use widget for certifications * refactor: reorganise ShowDisplayWidget * refactor: remove unused ids * test: pass dataCy, not projectTitle, to widget * chore: kebabify * revert: add id back for dropdown Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> * revert: add the ids back Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
committed by
GitHub
parent
92778f1b2f
commit
b223cdd255
@ -18,7 +18,7 @@ const fileJoi = Joi.object().keys({
|
||||
seed: Joi.string().allow(''),
|
||||
contents: Joi.string().allow(''),
|
||||
id: Joi.string().allow(''),
|
||||
history: [Joi.array().items(Joi.string().allow('')), Joi.string().allow('')]
|
||||
history: Joi.array().items(Joi.string().allow(''))
|
||||
});
|
||||
|
||||
const schema = Joi.object()
|
||||
|
Reference in New Issue
Block a user