logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 5a551b530a2f9127e74e27aa5f86bbaba36cc2d3
parent: e84fecb7e97851ed56f4d954e2d68128bb87da37
Author: Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Date:   Fri, 24 Nov 2017 21:13:17 +0900

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.

Diffstat:

Mapp/javascript/mastodon/features/compose/components/navigation_bar.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/features/compose/components/navigation_bar.js b/app/javascript/mastodon/features/compose/components/navigation_bar.js @@ -11,7 +11,7 @@ export default class NavigationBar extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, - onClose: PropTypes.func.isRequired, + onClose: PropTypes.func, }; render () {