Screens
PR · Affiliate programs
One active campaign per brand, the customer affiliates switch and the campaigns table.
One active campaign per brand, the customer affiliates switch and the campaigns table. Composed in PrScreens.tsx from BRICKS exports only, in the pr theme, with the PR Portal v3 mock's numbers.
Affiliate programs
Campaigns and challenges tabs, the customer affiliates switch, and the campaigns table.
Pinned to TRNDR preset
Code
import { useLanguage } from '@ergasti/bricks';
import { AffiliateProgramsScreen } from '../../../packages/bricks/src/gallery/screens/PrScreens';
function AffiliatePrograms() { return <AffiliateProgramsScreen language={useLanguage()} />; }How it is built
- The frame is
PrPortalFrame(0.7.0), as on every framed PR page: the v3 nav with counts, the Open decisions card, the PR person row with sign-out,HeaderSearch, the bell and the raspberry "+ New". PillTabs(Campaigns, Challenges) andCustomerAffiliatesSwitch(on,onTurnOff,onTurnOn).DecisionLine(0.7.0) for P6, P7 and R7.ListToolbarwith search, status and commissionselects, sort, export, and the scopeSegmentedinextra.DataTablewithcampaignColumns(language, undefined, { decimals: 'auto' }, { wrap: true }), so the date range, commission, sales and last-change cells wrap as in the mock.