mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix broken onboarding when no tabs were passed
This commit is contained in:
parent
2f99866267
commit
f88d547451
1 changed files with 10 additions and 8 deletions
|
@ -16,9 +16,9 @@ const TopNavigation = ( {
|
|||
onTitleClick = null,
|
||||
showProgressBar = false,
|
||||
progressBarPercent = 0,
|
||||
tabs,
|
||||
activePanel,
|
||||
setActivePanel,
|
||||
tabs = [],
|
||||
activePanel = '',
|
||||
setActivePanel = () => {},
|
||||
} ) => {
|
||||
const { goToWooCommercePaymentsTab } = useNavigation();
|
||||
const { isScrolled } = useIsScrolled();
|
||||
|
@ -69,11 +69,13 @@ const TopNavigation = ( {
|
|||
{ children }
|
||||
</BusyStateWrapper>
|
||||
</div>
|
||||
<TabNavigation
|
||||
tabs={ tabs }
|
||||
activePanel={ activePanel }
|
||||
setActivePanel={ setActivePanel }
|
||||
></TabNavigation>
|
||||
{ tabs.length > 0 && (
|
||||
<TabNavigation
|
||||
tabs={ tabs }
|
||||
activePanel={ activePanel }
|
||||
setActivePanel={ setActivePanel }
|
||||
/>
|
||||
) }
|
||||
|
||||
{ showProgressBar && (
|
||||
<ProgressBar percent={ progressBarPercent } />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue