Stop console from whining about null initializing propTypes
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>pull/10616/head
parent
841cc71185
commit
e15b435423
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue