mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-26 12:50:44 -04:00
added comment about falseness of authorId, authorUsername
This commit is contained in:
parent
8e967737e5
commit
4bb5e641bb
1 changed files with 2 additions and 0 deletions
|
@ -490,8 +490,10 @@ class Preview extends React.Component {
|
||||||
|
|
||||||
Preview.propTypes = {
|
Preview.propTypes = {
|
||||||
assetHost: PropTypes.string.isRequired,
|
assetHost: PropTypes.string.isRequired,
|
||||||
|
// If there's no author, this will be false`
|
||||||
authorId: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
authorId: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
||||||
authorThumbnailUrl: PropTypes.string,
|
authorThumbnailUrl: PropTypes.string,
|
||||||
|
// If there's no author, this will be false`
|
||||||
authorUsername: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
authorUsername: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),
|
||||||
backpackOptions: PropTypes.shape({
|
backpackOptions: PropTypes.shape({
|
||||||
host: PropTypes.string,
|
host: PropTypes.string,
|
||||||
|
|
Loading…
Add table
Reference in a new issue