Skip to Content
BBRICKSv0.7.4
Screens

Motivation · Request a challenge

The request-a-challenge form over the challenge cards.

The request-a-challenge form over the challenge cards. Composed in MotivationScreen.tsx (its view prop) from BRICKS exports only, with the v3 brand mock's numbers.

Requesting a challenge

ChallengeRequestForm in a modal over the challenge cards.

Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';

const view = (id: string, language: Lang) => {
  const { Screen } = BRAND_SUB_SCREENS[id];
  return <Screen language={language} />;
};

function ChallengeRequest() { return view('challenge-request', useLanguage()); }

How it is built

  • The Motivation screen with view="request": the challenge cards under a Modal (title, hint).
  • ChallengeRequestForm with gifts (id, name, units left), niches, tiers and groups, plus onSubmit / onCancel.