fix: Update some apis/datastructures

This commit is contained in:
Bouncey
2018-11-08 13:43:09 +00:00
committed by mrugesh mohapatra
parent aca424be97
commit f5ae5027cc
2 changed files with 17 additions and 7 deletions

View File

@@ -33,10 +33,12 @@ const propTypes = {
completedDate: PropTypes.number,
challengeType: PropTypes.number,
solution: PropTypes.string,
files: PropTypes.shape({
ext: PropTypes.string,
contents: PropTypes.string
})
files: PropTypes.arrayOf(
PropTypes.shape({
ext: PropTypes.string,
contents: PropTypes.string
})
)
})
),
fetchIdToNameMap: PropTypes.func.isRequired,