File size: 1,294 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
import { type Callback } from '@automattic/calypso-router';
import PageViewTracker from 'calypso/a8c-for-agencies/components/a4a-page-view-tracker';
import ReferralsSidebar from 'calypso/a8c-for-agencies/components/sidebar-menu/referrals';
import ReferralsBankDetails from './primary/bank-details';
import CommissionOverview from './primary/commission-overview';
import ReferralsOverview from './primary/referrals-overview';
export const referralsDashboardContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Referrals > Dashboard" path={ context.path } />
<ReferralsOverview />
</>
);
context.secondary = <ReferralsSidebar path={ context.path } />;
next();
};
export const referralsPaymentSettingsContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Referrals > Payment Settings" path={ context.path } />
<ReferralsBankDetails />
</>
);
context.secondary = <ReferralsSidebar path={ context.path } />;
next();
};
export const referralsFAQContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Referrals > FAQ" path={ context.path } />
<CommissionOverview />
</>
);
context.secondary = <ReferralsSidebar path={ context.path } />;
next();
};
|