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 = {
|
UserNavBlock.propTypes = {
|
||||||
links: shape({
|
links: shape({
|
||||||
me: string.isRequired,
|
me: string,
|
||||||
external: shape({
|
external: shape({
|
||||||
custom: arrayOf(
|
custom: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
|
@ -98,20 +98,20 @@ UserNavBlock.propTypes = {
|
||||||
currentOrganization: shape({
|
currentOrganization: shape({
|
||||||
id: string.isRequired,
|
id: string.isRequired,
|
||||||
name: string.isRequired,
|
name: string.isRequired,
|
||||||
}).isRequired,
|
}),
|
||||||
name: string.isRequired,
|
name: string,
|
||||||
organizations: arrayOf(
|
organizations: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
id: string.isRequired,
|
id: string.isRequired,
|
||||||
name: string.isRequired,
|
name: string.isRequired,
|
||||||
})
|
})
|
||||||
).isRequired,
|
),
|
||||||
roles: arrayOf(
|
roles: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
id: string.isRequired,
|
id: string,
|
||||||
name: string.isRequired,
|
name: string,
|
||||||
})
|
})
|
||||||
).isRequired,
|
),
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
meChangeOrganization: func.isRequired,
|
meChangeOrganization: func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ const SideNav = React.createClass({
|
||||||
isUsingAuth: bool,
|
isUsingAuth: bool,
|
||||||
logoutLink: string,
|
logoutLink: string,
|
||||||
links: shape({
|
links: shape({
|
||||||
me: string.isRequired,
|
me: string,
|
||||||
external: shape({
|
external: shape({
|
||||||
custom: arrayOf(
|
custom: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
|
@ -42,20 +42,20 @@ const SideNav = React.createClass({
|
||||||
currentOrganization: shape({
|
currentOrganization: shape({
|
||||||
id: string.isRequired,
|
id: string.isRequired,
|
||||||
name: string.isRequired,
|
name: string.isRequired,
|
||||||
}).isRequired,
|
}),
|
||||||
name: string.isRequired,
|
name: string,
|
||||||
organizations: arrayOf(
|
organizations: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
id: string.isRequired,
|
id: string.isRequired,
|
||||||
name: string.isRequired,
|
name: string.isRequired,
|
||||||
})
|
})
|
||||||
).isRequired,
|
),
|
||||||
roles: arrayOf(
|
roles: arrayOf(
|
||||||
shape({
|
shape({
|
||||||
id: string.isRequired,
|
id: string,
|
||||||
name: string.isRequired,
|
name: string,
|
||||||
})
|
})
|
||||||
).isRequired,
|
),
|
||||||
}).isRequired,
|
}).isRequired,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue