if yes is selected, this options show up

This commit is contained in:
Leon Serfaty G
2025-07-17 10:52:57 +00:00
parent 5f1c344406
commit f5294a148d
3 changed files with 107 additions and 34 deletions
@@ -25,6 +25,11 @@ export type IllustrationSelection = {
export type BrandingSelection = 'full-cycle' | 'brush-up' | 'logo-only' | 'none' | null;
export type ShoppingCartSelection = {
hasCart: boolean | null;
multiplePurchases: boolean | null;
}
export type FormData = {
projectType: 'website' | 'mobile-app' | 'platform' | null;
serviceType: 'entire-project' | 'development' | 'ui-ux-design' | 'identity-branding' | null;
@@ -35,7 +40,7 @@ export type FormData = {
illustrations: IllustrationSelection;
branding: BrandingSelection;
additionalFeatures: string[];
shoppingCart: boolean | null;
shoppingCart: ShoppingCartSelection;
};
export function CostEstimatorForm() {
@@ -55,7 +60,10 @@ export function CostEstimatorForm() {
},
branding: null,
additionalFeatures: [],
shoppingCart: null,
shoppingCart: {
hasCart: null,
multiplePurchases: null,
},
});
const [isPending, startTransition] = useTransition();
@@ -91,7 +99,10 @@ export function CostEstimatorForm() {
},
branding: null,
additionalFeatures: [],
shoppingCart: null,
shoppingCart: {
hasCart: null,
multiplePurchases: null
},
});
setCurrentStep(1);
}