mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🚚 Consistent file- and component-naming
This commit is contained in:
parent
0a5fb316c4
commit
2a1da98b5f
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ import { OnboardingHooks } from '../../../../data';
|
|||
import { useNavigation } from '../../../../hooks/useNavigation';
|
||||
import TopNavigation from '../../../ReusableComponents/TopNavigation';
|
||||
|
||||
const Navigation = ( { stepDetails, onNext, onPrev } ) => {
|
||||
const OnboardingNavigation = ( { stepDetails, onNext, onPrev } ) => {
|
||||
const { goToWooCommercePaymentsTab } = useNavigation();
|
||||
const { title, isFirst, percentage, showNext, canProceed } = stepDetails;
|
||||
|
||||
|
@ -37,4 +37,4 @@ const Navigation = ( { stepDetails, onNext, onPrev } ) => {
|
|||
);
|
||||
};
|
||||
|
||||
export default Navigation;
|
||||
export default OnboardingNavigation;
|
||||
|
|
|
@ -2,7 +2,7 @@ import Container from '../../ReusableComponents/Container';
|
|||
import { OnboardingHooks } from '../../../data';
|
||||
|
||||
import { getSteps, getCurrentStep } from './Steps';
|
||||
import Navigation from './Components/Navigation';
|
||||
import OnboardingNavigation from './Components/Navigation';
|
||||
|
||||
const OnboardingScreen = () => {
|
||||
const { step, setStep, flags } = OnboardingHooks.useSteps();
|
||||
|
@ -14,7 +14,7 @@ const OnboardingScreen = () => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Navigation
|
||||
<OnboardingNavigation
|
||||
stepDetails={ currentStep }
|
||||
onNext={ handleNext }
|
||||
onPrev={ handlePrev }
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Container from '../../ReusableComponents/Container';
|
||||
import TabNavigation from '../../ReusableComponents/TabNavigation';
|
||||
import { getSettingsTabs } from './Tabs';
|
||||
import SettingsNavigation from './Components/SettingsNavigation';
|
||||
import SettingsNavigation from './Components/Navigation';
|
||||
|
||||
const SettingsScreen = () => {
|
||||
const tabs = getSettingsTabs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue