Stop console from whining about null initializing propTypes

Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
pull/10616/head
Michael de Sa 2017-11-03 14:41:48 -07:00 committed by Jared Scheib
parent 841cc71185
commit e15b435423
2 changed files with 14 additions and 14 deletions

View File

@ -83,7 +83,7 @@ const {arrayOf, func, shape, string} = PropTypes
UserNavBlock.propTypes = {
links: shape({
me: string.isRequired,
me: string,
external: shape({
custom: arrayOf(
shape({
@ -98,20 +98,20 @@ UserNavBlock.propTypes = {
currentOrganization: shape({
id: string.isRequired,
name: string.isRequired,
}).isRequired,
name: string.isRequired,
}),
name: string,
organizations: arrayOf(
shape({
id: string.isRequired,
name: string.isRequired,
})
).isRequired,
),
roles: arrayOf(
shape({
id: string.isRequired,
name: string.isRequired,
id: string,
name: string,
})
).isRequired,
),
}).isRequired,
meChangeOrganization: func.isRequired,
}

View File

@ -28,7 +28,7 @@ const SideNav = React.createClass({
isUsingAuth: bool,
logoutLink: string,
links: shape({
me: string.isRequired,
me: string,
external: shape({
custom: arrayOf(
shape({
@ -42,20 +42,20 @@ const SideNav = React.createClass({
currentOrganization: shape({
id: string.isRequired,
name: string.isRequired,
}).isRequired,
name: string.isRequired,
}),
name: string,
organizations: arrayOf(
shape({
id: string.isRequired,
name: string.isRequired,
})
).isRequired,
),
roles: arrayOf(
shape({
id: string.isRequired,
name: string.isRequired,
id: string,
name: string,
})
).isRequired,
),
}).isRequired,
},