From 8713659dffc884c65376091d3731c8074ac581e4 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Wed, 27 Dec 2017 14:28:41 -0800 Subject: WIP Refactor; ed. --- app/javascript/flavours/glitch/features/drawer/index.js | 6 ++++++ app/javascript/flavours/glitch/features/drawer/search/index.js | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'app/javascript/flavours/glitch/features/drawer') diff --git a/app/javascript/flavours/glitch/features/drawer/index.js b/app/javascript/flavours/glitch/features/drawer/index.js index 01ec18fc5..1b7a8a0b5 100644 --- a/app/javascript/flavours/glitch/features/drawer/index.js +++ b/app/javascript/flavours/glitch/features/drawer/index.js @@ -143,6 +143,12 @@ Drawer.propTypes = { }).isRequired, }; +// Default props. +Drawer.defaultProps = { + dispatch: {}, + state: {}, +}; + // Connecting and export. export { Drawer as WrappedComponent }; export default wrap(Drawer, mapStateToProps, mapDispatchToProps, true); diff --git a/app/javascript/flavours/glitch/features/drawer/search/index.js b/app/javascript/flavours/glitch/features/drawer/search/index.js index ccb2ba859..ed69f71ed 100644 --- a/app/javascript/flavours/glitch/features/drawer/search/index.js +++ b/app/javascript/flavours/glitch/features/drawer/search/index.js @@ -109,7 +109,7 @@ export default class DrawerSearch extends React.PureComponent { -- cgit