Skip to content

Commit 5344b44

Browse files
committed
🚚 Rename TabNavigation to make it more unique
1 parent 46d00fb commit 5344b44

File tree

2 files changed

+4
-4
lines changed
  • modules/ppcp-settings/resources/js/Components

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TabPanel } from '@wordpress/components';
55

66
import { updateQueryString } from '../../utils/navigation';
77

8-
const TabNavigation = ( { tabs, activePanel, setActivePanel } ) => {
8+
const TabBar = ( { tabs, activePanel, setActivePanel } ) => {
99
const isValidTab = ( tabsList, checkTab ) => {
1010
return tabsList.some( ( tab ) => tab.name === checkTab );
1111
};
@@ -36,4 +36,4 @@ const TabNavigation = ( { tabs, activePanel, setActivePanel } ) => {
3636
);
3737
};
3838

39-
export default TabNavigation;
39+
export default TabBar;

‎modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { __ } from '@wordpress/i18n';
33

44
import TopNavigation from '../../../ReusableComponents/TopNavigation';
55
import { useSaveSettings } from '../../../../hooks/useSaveSettings';
6-
import TabNavigation from '../../../ReusableComponents/TabNavigation';
6+
import TabBar from '../../../ReusableComponents/TabBar';
77

88
const SettingsNavigation = ( {
99
canSave = true,
@@ -20,7 +20,7 @@ const SettingsNavigation = ( {
2020
title={ title }
2121
exitOnTitleClick={ true }
2222
subNavigation={
23-
<TabNavigation
23+
<TabBar
2424
tabs={ tabs }
2525
activePanel={ activePanel }
2626
setActivePanel={ setActivePanel }

0 commit comments

Comments
 (0)