Browse Source

Do not require onClose property in NavigationBar (#5802)

NavigationBar can be used as mock as it is in OnboardingModal. In such a
case, onClose property is not required.
master
Akihiko Odaki 7 years ago
committed by Eugen Rochko
parent
commit
5a551b530a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/compose/components/navigation_bar.js

+ 1
- 1
app/javascript/mastodon/features/compose/components/navigation_bar.js View File

@ -11,7 +11,7 @@ export default class NavigationBar extends ImmutablePureComponent {
static propTypes = { static propTypes = {
account: ImmutablePropTypes.map.isRequired, account: ImmutablePropTypes.map.isRequired,
onClose: PropTypes.func.isRequired,
onClose: PropTypes.func,
}; };
render () { render () {

Loading…
Cancel
Save