From d879964fdcff2c9283197906bb2e24bc5f5ed386 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Fri, 31 Jan 2020 16:21:06 +0100 Subject: [PATCH] Object type tabs mockup. --- frontend/src/js/page/wb-browse.js | 5 +++++ frontend/src/js/widget/wb-tabs.js | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/frontend/src/js/page/wb-browse.js b/frontend/src/js/page/wb-browse.js index 1360613..9d010b7 100644 --- a/frontend/src/js/page/wb-browse.js +++ b/frontend/src/js/page/wb-browse.js @@ -4,6 +4,7 @@ import WBNavbar from 'wb-navbar'; import WBProjectListing from 'wb-project-listing'; import WBInlineSearch from 'wb-inline-search'; import WBProjectCrumbs from 'wb-project-crumbs'; +import WBTabs from 'wb-tabs'; class WBBrowse extends Component { render({ ownerUuid, activePage, appCallbacks, appState }) { @@ -20,12 +21,16 @@ class WBBrowse extends Component { route('/browse/' + item['uuid']) } /> + + route('/browse/' + (ownerUuid || '') + '/' + i)} /> + + ); } diff --git a/frontend/src/js/widget/wb-tabs.js b/frontend/src/js/widget/wb-tabs.js index 61c711b..140b6b7 100644 --- a/frontend/src/js/widget/wb-tabs.js +++ b/frontend/src/js/widget/wb-tabs.js @@ -30,4 +30,8 @@ class WBTabs extends Component { } } +WBTabs.defaultProps = { + 'onTabChanged': () => {} +}; + export default WBTabs;